From b39457ccc67e9351ca2daa7db1db1a23866731f1 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 5 Sep 2012 08:48:29 -0700 Subject: documentation/dev-manual/dev-manual-common-tasks.xml: package group changes Task has been renamed to package group, and there are some minor changes in how package group recipes should be constructed - in particular the inherit of packagegroup.bbclass is now highly recommended as it will set appropriate defaults and automatically add complementary -dev and -dbg packages. In addition to Paul's patch, I added a couple / tags around some switch names to be consistent with manual formatting. (From yocto-docs rev: 598d18507ace2054f8c8bb5f496557c98f066b5a) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../dev-manual/dev-manual-common-tasks.xml | 50 +++++++++++----------- 1 file changed, 26 insertions(+), 24 deletions(-) (limited to 'documentation') diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index bdf59de8a6..e456d540a0 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml @@ -465,7 +465,7 @@ One way to get additional software into an image is to create a custom image. The following example shows the form for the two lines you need: - IMAGE_INSTALL = "task-core-x11-base package1 package2" + IMAGE_INSTALL = "packagegroup-core-x11-base package1 package2" inherit core-image @@ -494,58 +494,60 @@
- Customizing Images Using Custom Tasks + Customizing Images Using Custom Package Groups - For complex custom images, the best approach is to create a custom task package + For complex custom images, the best approach is to create a custom package group recipe that is used to build the image or images. - A good example of a tasks package is - meta/recipes-core/tasks/task-core-boot.bb + A good example of a package group recipe is + meta/recipes-core/packagegroups/packagegroup-core-boot.bb. The PACKAGES - variable lists the task packages to build along with the complementary - -dbg and -dev packages. - For each package added, you can use + variable lists the package group packages you wish to produce. inherit packagegroup + sets appropriate default values and automatically adds -dev + and -dbg 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. + For each package you specify in PACKAGES, you can use RDEPENDS and RRECOMMENDS entries to provide a list of packages the parent task package should contain. Following is an example: - DESCRIPTION = "My Custom Tasks" + DESCRIPTION = "My Custom Package Groups" + + inherit packagegroup PACKAGES = "\ - task-custom-apps \ - task-custom-apps-dbg \ - task-custom-apps-dev \ - task-custom-tools \ - task-custom-tools-dbg \ - task-custom-tools-dev \ + packagegroup-custom-apps \ + packagegroup-custom-tools \ " - RDEPENDS_task-custom-apps = "\ + RDEPENDS_packagegroup-custom-apps = "\ dropbear \ portmap \ psplash" - RDEPENDS_task-custom-tools = "\ + RDEPENDS_packagegroup-custom-tools = "\ oprofile \ oprofileui-server \ lttng-control \ lttng-viewer" - RRECOMMENDS_task-custom-tools = "\ + RRECOMMENDS_packagegroup-custom-tools = "\ kernel-module-oprofile" - In the previous example, two task packages are created with their dependencies and their - recommended package dependencies listed: task-custom-apps, and - task-custom-tools. - To build an image using these task packages, you need to add - task-custom-apps and/or - task-custom-tools to + In the previous example, two package group packages are created with their dependencies and their + recommended package dependencies listed: packagegroup-custom-apps, and + packagegroup-custom-tools. + To build an image using these packagegroup packages, you need to add + packagegroup-custom-apps and/or + packagegroup-custom-tools to IMAGE_INSTALL. For other forms of image dependencies see the other areas of this section. -- cgit v1.2.3-54-g00ecf