dev-manual: Edits to "Making Sure the Packaging is Done" section.

(From yocto-docs rev: 3b588d0cf33613365615a4a5f1280995f7a053c4)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Scott Rifenbark 2013-04-16 09:47:50 -07:00 committed by Richard Purdie
parent 6c5bb9651d
commit a68970ebb7
1 changed files with 10 additions and 7 deletions

View File

@ -3176,13 +3176,14 @@
<para> <para>
To ensure the module packaging actually gets done, you use To ensure the module packaging actually gets done, you use
the <filename>do_split_packages</filename> function within the <filename>do_split_packages</filename> function within
the <filename>populate_packages</filename> python function the <filename>populate_packages</filename> Python function
in your recipe. in your recipe.
The <filename>do_split_packages</filename> function The <filename>do_split_packages</filename> function
searches for a pattern of files or directories under a searches for a pattern of files or directories under a
specified path and creates a package for each one it finds specified path and creates a package for each one it finds
by appending to the <filename>PACKAGES</filename> variable by appending to the
and setting the appropriate values for <ulink url='&YOCTO_DOCS_REF_URL;#var-PACKAGES'><filename>PACKAGES</filename></ulink>
variable and setting the appropriate values for
<filename>FILES_packagename</filename>, <filename>FILES_packagename</filename>,
<filename>RDEPENDS_packagename</filename>, <filename>RDEPENDS_packagename</filename>,
<filename>DESCRIPTION_packagename</filename>, and so forth. <filename>DESCRIPTION_packagename</filename>, and so forth.
@ -3218,7 +3219,8 @@
Thus, if a file in <filename>${libdir}</filename> Thus, if a file in <filename>${libdir}</filename>
called <filename>mod_alias.so</filename> is found, called <filename>mod_alias.so</filename> is found,
a package called <filename>lighttpd-module-alias</filename> a package called <filename>lighttpd-module-alias</filename>
is created for it and the <filename>DESCRIPTION</filename> is created for it and the
<ulink url='&YOCTO_DOCS_REF_URL;#var-DESCRIPTION'><filename>DESCRIPTION</filename></ulink>
is set to "Lighttpd module for alias".</para></listitem> is set to "Lighttpd module for alias".</para></listitem>
</itemizedlist> </itemizedlist>
</para> </para>
@ -3226,8 +3228,8 @@
<para> <para>
Often, packaging modules is as simple as the previous Often, packaging modules is as simple as the previous
example. example.
However, more advanced options exist that you can employ However, more advanced options exist that you can use
to <filename>do_split_packages</filename> to modify its within <filename>do_split_packages</filename> to modify its
behavior. behavior.
And, if you need to, you can add more logic by specifying And, if you need to, you can add more logic by specifying
a hook function that is called for each package. a hook function that is called for each package.
@ -3241,7 +3243,8 @@
<filename>do_split_packages</filename>, see the <filename>do_split_packages</filename>, see the
<filename>connman.inc</filename> file in the <filename>connman.inc</filename> file in the
<filename>meta/recipes-connectivity/connman/</filename> <filename>meta/recipes-connectivity/connman/</filename>
directory of the <filename>poky</filename> source repository. directory of the <filename>poky</filename>
<link linkend='yocto-project-repositories'>source repository</link>.
You can also find examples in You can also find examples in
<filename>meta/classes/kernel.bbclass</filename>. <filename>meta/classes/kernel.bbclass</filename>.
</para> </para>