From 66ad91bd54d7a3ab0ea3948ac9bf42e3da53eadc Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 6 Jan 2015 10:46:13 -0600 Subject: [PATCH] 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 (From yocto-docs rev: c7f07a2993d5c1b8e0c8b7da0e9d4c28242a5e26) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../dev-manual/dev-manual-common-tasks.xml | 39 +++++++++++++------ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index 9503593f61..17d725b3b8 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml @@ -1100,18 +1100,27 @@ an image is to create a custom package group recipe that is used to build the image or images. A good example of a package group recipe is - meta/recipes-core/packagegroups/packagegroup-core-boot.bb. - The + meta/recipes-core/packagegroups/packagegroup-base.bb. + + + + If you examine that recipe, you see that the PACKAGES - variable lists the package group packages you wish to produce. - inherit packagegroup sets appropriate - default values and automatically adds -dev, - -dbg, and -ptest - complementary packages for every package specified in - PACKAGES. - Note that the inherit line should be towards - the top of the recipe, certainly before you set - PACKAGES. + variable lists the package group packages to produce. + The inherit packagegroup statement + sets appropriate default values and automatically adds + -dev, -dbg, and + -ptest complementary packages for each + package specified in the PACKAGES + statement. + + The inherit packages should be + located near the top of the recipe, certainly before + the PACKAGES statement. + + + + For each package you specify in PACKAGES, you can use RDEPENDS @@ -1119,7 +1128,13 @@ RRECOMMENDS entries to provide a list of packages the parent task package should contain. - Following is an example: + You can see examples of these further down in the + packagegroup-base.bb recipe. + + + + Here is a short, fabricated example showing the same basic + pieces: DESCRIPTION = "My Custom Package Groups"