From 3b0739f718f4fd59d18c85e485cd9234a17e9019 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 16 Apr 2013 09:47:50 -0700 Subject: dev-manual: Edits to "Making Sure the Packaging is Done" section. (From yocto-docs rev: 3b588d0cf33613365615a4a5f1280995f7a053c4) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/dev-manual/dev-manual-common-tasks.xml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'documentation/dev-manual') diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index e07a494c66..8754c0516f 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml @@ -3176,13 +3176,14 @@ To ensure the module packaging actually gets done, you use the do_split_packages function within - the populate_packages python function + the populate_packages Python function in your recipe. The do_split_packages function searches for a pattern of files or directories under a specified path and creates a package for each one it finds - by appending to the PACKAGES variable - and setting the appropriate values for + by appending to the + PACKAGES + variable and setting the appropriate values for FILES_packagename, RDEPENDS_packagename, DESCRIPTION_packagename, and so forth. @@ -3218,7 +3219,8 @@ Thus, if a file in ${libdir} called mod_alias.so is found, a package called lighttpd-module-alias - is created for it and the DESCRIPTION + is created for it and the + DESCRIPTION is set to "Lighttpd module for alias". @@ -3226,8 +3228,8 @@ Often, packaging modules is as simple as the previous example. - However, more advanced options exist that you can employ - to do_split_packages to modify its + However, more advanced options exist that you can use + within do_split_packages to modify its behavior. And, if you need to, you can add more logic by specifying a hook function that is called for each package. @@ -3241,7 +3243,8 @@ do_split_packages, see the connman.inc file in the meta/recipes-connectivity/connman/ - directory of the poky source repository. + directory of the poky + source repository. You can also find examples in meta/classes/kernel.bbclass. -- cgit v1.2.3-54-g00ecf