Documentation
I have been reading a copy of the OpenEmbedded User Manual (latest copyright 2009). In this document I find that there are numerous sections which are stubs and/or are incomplete. As a newcomer to the world of OpenEmbedded what other documents are suggested for reading? Also, is there a later version of this manual?
Best regards,
Dave.
Hello.
Quoted 5 lines · David Lambert
I have been reading a copy of the OpenEmbedded User Manual (latest copyright 2009). In this document I find that there are numerous sections which are stubs and/or are incomplete. As a newcomer to the world of OpenEmbedded what other documents are suggested for reading? Also, is there a later version of this manual?
My glassball is in repair so I can't see what manual you have and if a newer one is available. Adding some kind of date string would help us here.
The user manual is build directly from the sources and should be always up to date here:
http://docs.openembedded.org/usermanual/usermanual.html
regards
Stefan Schmidt
That is indeed the version of documentation that I was reading. To be more specific, one of the subjects I was attempting to look up was how to specialize a recipe using "amend.inc". I do not see any documentation on this subject.
Regards,
Dave.
Quoted 23 lines · Stefan Schmidt
Hello.
Quoted 5 lines · David Lambert
I have been reading a copy of the OpenEmbedded User Manual (latest copyright 2009). In this document I find that there are numerous sections which are stubs and/or are incomplete. As a newcomer to the world of OpenEmbedded what other documents are suggested for reading? Also, is there a later version of this manual?
My glassball is in repair so I can't see what manual you have and if a newer one is available. Adding some kind of date string would help us here.
The user manual is build directly from the sources and should be always up to date here:
http://docs.openembedded.org/usermanual/usermanual.htmlregards
Stefan Schmidt_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Hello.
Quoted 4 lines · David Lambert
That is indeed the version of documentation that I was reading. To be more specific, one of the subjects I was attempting to look up was how to specialize a recipe using "amend.inc". I do not see any documentation on this subject.
We lack a good technical writer in the community. IIRC there was a blogpost from Khem about it and maybe some more infos on the mailling list. Thats of course not the most straight forward location for the information.
If you searched together the information it would be great if you could send a patch updating the manual with it. :)
regards
Stefan Schmidt
Quoted 14 lines · Stefan Schmidt
Hello.
Quoted 4 lines · David Lambert
That is indeed the version of documentation that I was reading. To be more specific, one of the subjects I was attempting to look up was how to specialize a recipe using "amend.inc". I do not see any documentation on this subject.
We lack a good technical writer in the community. IIRC there was a blogpost from
Khem about it and maybe some more infos on the mailling list. Thats of course
not the most straight forward location for the information.
Quoted 8 lines
If you searched together the information it would be great if you could send a
patch updating the manual with it. :)regards
Stefan Schmidt
I'm not an expert on the subject, but I've managed to utilize amend.inc based on some information I pieced together from the irc logs. I hope to soon write an article on how to use amend.inc, but haven't yet found the time.
(This is far from authoritative, but it's been working for me here)
You need to add the following to build-dir/conf/local.conf (can also go in overlay/conf/site.conf).
INHERIT += "amend"
DEV_BASE = "${HOME}/dev/openembedded/dev"
COLLECTIONS = "${DEV_BASE}/overlay/recipes \
${DEV_BASE}/openembedded/recipes"# By default, file:// SRC_URIs only look under the current .bb file. # Prepend our overlays into the file:// search path, so we can override
# openembedded recipes' SRC_URI files. Also, ensure the openembedded
# files are always in the search path, so our overlay .bb's can
# reference upstream files.
FILESPATHBASE =. "${@ \
':'.join([os.path.join(recipedir, \
os.path.basename(os.path.dirname( \
d.getVar('FILE',
1)))) \
for recipedir in d.getVar('COLLECTIONS', 1).split()])}:"You'll need to make DEV_BASE and COLLECTIONS match your setup. This assumes that I have two trees with recipes:
- openembedded
- overlay
This makes sure that for a given recipe, my local overlay will be in its FILESPATH.
Now, for example, I've added a patch to psplash to adjust the colors. In overlay/recipes/psplash/ I have two files:
amend.inc:
PR .= "-amend"SRC_URI += "file://0001-tweaked-for-company-colors.patch"
and my patch, named 0001-tweaked-for-company-colors.patch
Now, the new patch will be applied when psplash is built. Also, I like updating PR with -amend, this way the package is now shown as psplash-0.0+svnr422-r34-amend, so that I can easily tell that I've amended the package.
I'm sure there are others who can provide more/better information, but that'll hopefully get you started.
Regards,
Bob Foerster
Thanks for all the suggestions. While on the subject, does a dictionary of keywords with their meanings exist anywhere? Newbies like me may find it very useful when browsing recipes. Some terms are intuitively obvious, such as DEV_BASE, but others such as PR, INHERIT, PV, leave me with some ambiguity.
Regards,
Dave.
Quoted 83 lines · Robert Foerster
Quoted 13 lines · Stefan Schmidt
Hello.
Quoted 4 lines · David Lambert
That is indeed the version of documentation that I was reading. To be more specific, one of the subjects I was attempting to look up was how to specialize a recipe using "amend.inc". I do not see any documentation on this subject.
We lack a good technical writer in the community. IIRC there was a blogpost from
Khem about it and maybe some more infos on the mailling list. Thats of course
not the most straight forward location for the information.Quoted 8 lines
If you searched together the information it would be great if you could send a
patch updating the manual with it. :)regards
Stefan SchmidtI'm not an expert on the subject, but I've managed to utilize amend.inc based on some information I pieced together from the irc logs. I hope to soon write an article on how to use amend.inc, but haven't yet found the time.
(This is far from authoritative, but it's been working for me here)
You need to add the following to
build-dir/conf/local.conf(can also go inoverlay/conf/site.conf).
INHERIT += "amend"
DEV_BASE= "${HOME}/dev/openembedded/dev"COLLECTIONS = "${DEV_BASE}/overlay/recipes \ ${DEV_BASE}/openembedded/recipes"# By default, file://
SRC_URIsonly look under the current .bb file. # Prepend our overlays into the file:// search path, so we can override# openembedded recipes' SRC_URI files. Also, ensure the openembedded # files are always in the search path, so our overlay .bb's can # reference upstream files. FILESPATHBASE =. "${@ \ ':'.join([os.path.join(recipedir, \ os.path.basename(os.path.dirname( \ d.getVar('FILE', 1)))) \ for recipedir in d.getVar('COLLECTIONS', 1).split()])}:"You'll need to make
DEV_BASEand COLLECTIONS match your setup. This assumes that I have two trees with recipes:
- openembedded
- overlayThis makes sure that for a given recipe, my local overlay will be in its FILESPATH.
Now, for example, I've added a patch to psplash to adjust the colors. In overlay/recipes/psplash/ I have two files:
amend.inc:
PR .= "-amend"SRC_URI+= "file://0001-tweaked-for-company-colors.patch"and my patch, named 0001-tweaked-for-company-colors.patch
Now, the new patch will be applied when psplash is built. Also, I like updating PR with -amend, this way the package is now shown as psplash-0.0+svnr422-r34-amend, so that I can easily tell that I've amended the package.
I'm sure there are others who can provide more/better information, but that'll hopefully get you started.
Regards,
Bob Foerster
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 7 lines · David Lambert
Thanks for all the suggestions. While on the subject, does a dictionary of keywords with their meanings exist anywhere? Newbies like me may find it very useful when browsing recipes. Some terms are intuitively obvious, such as
DEV_BASE, but others such as PR, INHERIT, PV, leave me with some ambiguity.
Some info can be found in the manual:
http://docs.openembedded.org/usermanual/usermanual.html#recipes_versioning
Discussed in the manual are many of the items which are initially confusing:
P, PN, PV, PR, PF, S, D, WORDIR, etc
Also useful is to read the bitbake manual, which defines the basic metadata syntax handled by bitbake. http://bitbake.berlios.de/manual/
Hope that helps.
Bob
Quoted 103 lines
Regards,
Dave.
Quoted 81 lines · Robert Foerster
On Wed, Dec 1, 2010 at 1:54 PM, Stefan Schmidt<[email protected]
Quoted 1 line
wrote:
Hello.
Quoted 19 lines · David Lambert
Quoted 6 lines
That is indeed the version of documentation that I was reading. To be more specific, one of the subjects I was attempting to look up was how to specialize a recipe using "amend.inc". I do not see any documentation on this subject.
We lack a good technical writer in the community. IIRC there was a blogpost
from
Khem about it and maybe some more infos on the mailling list. Thats of course
not the most straight forward location for the information.If you searched together the information it would be great if you could send a
patch updating the manual with it. :)Quoted 5 lines
regards
Stefan SchmidtI'm not an expert on the subject, but I've managed to utilize amend.inc
based on some information I pieced together from the irc logs. I hope to soon write an article on how to use amend.inc, but haven't yet found the time.
(This is far from authoritative, but it's been working for me here)
You need to add the following to
build-dir/conf/local.conf(can also go inoverlay/conf/site.conf).
INHERIT += "amend"
DEV_BASE= "${HOME}/dev/openembedded/dev"COLLECTIONS = "${DEV_BASE}/overlay/recipes \ ${DEV_BASE}/openembedded/recipes"# By default, file://
SRC_URIsonly look under the current .bb file. # Prepend our overlays into the file:// search path, so we can override# openembedded recipes' SRC_URI files. Also, ensure the openembedded # files are always in the search path, so our overlay .bb's can # reference upstream files. FILESPATHBASE =. "${@ \ ':'.join([os.path.join(recipedir, \ os.path.basename(os.path.dirname( \ d.getVar('FILE', 1)))) \ for recipedir in d.getVar('COLLECTIONS', 1).split()])}:"You'll need to make
DEV_BASEand COLLECTIONS match your setup. This assumes
that I have two trees with recipes:
- openembedded
- overlayThis makes sure that for a given recipe, my local overlay will be in its FILESPATH.
Now, for example, I've added a patch to psplash to adjust the colors. In overlay/recipes/psplash/ I have two files:
amend.inc:
PR .= "-amend"SRC_URI+= "file://0001-tweaked-for-company-colors.patch"and my patch, named 0001-tweaked-for-company-colors.patch
Now, the new patch will be applied when psplash is built. Also, I like updating PR with -amend, this way the package is now shown as psplash-0.0+svnr422-r34-amend, so that I can easily tell that I've amended the package.
I'm sure there are others who can provide more/better information, but that'll hopefully get you started.
Quoted 8 lines
Regards,
Bob Foerster
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Hi,
Quoted 9 lines · Robert Foerster
Quoted 7 lines · David Lambert
Thanks for all the suggestions. While on the subject, does a dictionary of keywords with their meanings exist anywhere? Newbies like me may find it very useful when browsing recipes. Some terms are intuitively obvious, such as
DEV_BASE, but others such as PR, INHERIT, PV, leave me with some ambiguity.
Quoted 4 lines
Some info can be found in the manual:
http://docs.openembedded.org/usermanual/usermanual.html#recipes_versioning
Discussed in the manual are many of the items which are initially confusing:
P, PN, PV, PR, PF, S, D, WORDIR, etc
The poky handbook also gives a few useful definitions:
http://www.pokylinux.org/releases/green-3.3/doc/poky-handbook.html#var-glossary-a
Quoted 7 lines
Also useful is to read the bitbake manual, which defines the basic metadata syntax handled by bitbake. http://bitbake.berlios.de/manual/
Hope that helps.
Bob
[...]
Signature · 12 lines
Christophe Aeschlimann Embedded Software Engineer Advanced Communications Networks S.A. Rue du Puits-Godet 8a 2000 Neuchâtel, Switzerland Tél. +41 32 724 74 31 [email protected]