dev-manual: Rewrite of the section on customizing images with packagegroups
This section was pointing to a poor example in meta. I substituted in a better example and rewrote the section to flow better around that example and the final fabricated one. Reported-by: Robert P. J. Day <rpjday@crashcourse.ca> (From yocto-docs rev: c7f07a2993d5c1b8e0c8b7da0e9d4c28242a5e26) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
c8691a2d44
commit
66ad91bd54
|
@ -1100,18 +1100,27 @@
|
||||||
an image is to create a custom package group recipe that is
|
an image is to create a custom package group recipe that is
|
||||||
used to build the image or images.
|
used to build the image or images.
|
||||||
A good example of a package group recipe is
|
A good example of a package group recipe is
|
||||||
<filename>meta/recipes-core/packagegroups/packagegroup-core-boot.bb</filename>.
|
<filename>meta/recipes-core/packagegroups/packagegroup-base.bb</filename>.
|
||||||
The
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
If you examine that recipe, you see that the
|
||||||
<filename><ulink url='&YOCTO_DOCS_REF_URL;#var-PACKAGES'>PACKAGES</ulink></filename>
|
<filename><ulink url='&YOCTO_DOCS_REF_URL;#var-PACKAGES'>PACKAGES</ulink></filename>
|
||||||
variable lists the package group packages you wish to produce.
|
variable lists the package group packages to produce.
|
||||||
<filename>inherit packagegroup</filename> sets appropriate
|
The <filename>inherit packagegroup</filename> statement
|
||||||
default values and automatically adds <filename>-dev</filename>,
|
sets appropriate default values and automatically adds
|
||||||
<filename>-dbg</filename>, and <filename>-ptest</filename>
|
<filename>-dev</filename>, <filename>-dbg</filename>, and
|
||||||
complementary packages for every package specified in
|
<filename>-ptest</filename> complementary packages for each
|
||||||
<filename>PACKAGES</filename>.
|
package specified in the <filename>PACKAGES</filename>
|
||||||
Note that the inherit line should be towards
|
statement.
|
||||||
the top of the recipe, certainly before you set
|
<note>
|
||||||
<filename>PACKAGES</filename>.
|
The <filename>inherit packages</filename> should be
|
||||||
|
located near the top of the recipe, certainly before
|
||||||
|
the <filename>PACKAGES</filename> statement.
|
||||||
|
</note>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
For each package you specify in <filename>PACKAGES</filename>,
|
For each package you specify in <filename>PACKAGES</filename>,
|
||||||
you can use
|
you can use
|
||||||
<filename><ulink url='&YOCTO_DOCS_REF_URL;#var-RDEPENDS'>RDEPENDS</ulink></filename>
|
<filename><ulink url='&YOCTO_DOCS_REF_URL;#var-RDEPENDS'>RDEPENDS</ulink></filename>
|
||||||
|
@ -1119,7 +1128,13 @@
|
||||||
<filename><ulink url='&YOCTO_DOCS_REF_URL;#var-RRECOMMENDS'>RRECOMMENDS</ulink></filename>
|
<filename><ulink url='&YOCTO_DOCS_REF_URL;#var-RRECOMMENDS'>RRECOMMENDS</ulink></filename>
|
||||||
entries to provide a list of packages the parent task package
|
entries to provide a list of packages the parent task package
|
||||||
should contain.
|
should contain.
|
||||||
Following is an example:
|
You can see examples of these further down in the
|
||||||
|
<filename>packagegroup-base.bb</filename> recipe.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Here is a short, fabricated example showing the same basic
|
||||||
|
pieces:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
DESCRIPTION = "My Custom Package Groups"
|
DESCRIPTION = "My Custom Package Groups"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue