dev-manual: Edits to adding features through variables section.

I cleaned up the wording to indicate best places from which
to use the IMAGE_FEATURES and EXTRA_IMAGE_FEATURES variables.

(From yocto-docs rev: 68e9c8b3f8d9fe3a086ad77bc0c3b465380476b8)

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-03 15:04:32 -07:00 committed by Richard Purdie
parent 56ce44aa80
commit 3676e083ef
1 changed files with 56 additions and 22 deletions

View File

@ -606,28 +606,43 @@
<filename>EXTRA_IMAGE_FEATURES</filename></title> <filename>EXTRA_IMAGE_FEATURES</filename></title>
<para> <para>
Ultimately, you might want to add extra image features to the You might want to customize your image by adding image
set by using the features.
<filename><ulink url='&YOCTO_DOCS_REF_URL;#var-IMAGE_FEATURES'>IMAGE_FEATURES</ulink></filename> You add features to the existing set by using the
variable. <ulink url='&YOCTO_DOCS_REF_URL;#var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></ulink>
To create these features, the best reference is and <ulink url='&YOCTO_DOCS_REF_URL;#var-EXTRA_IMAGE_FEATURES'><filename>EXTRA_IMAGE_FEATURES</filename></ulink>
<filename>meta/classes/core-image.bbclass</filename>, which variables.
shows how you can add features. Although both variables are nearly identical, best practices
dictate using the <filename>IMAGE_FEATURES</filename> from
within a recipe and using
<filename>EXTRA_IMAGE_FEATURES</filename> from within
your <filename>local.conf</filename>, which is found in the
<link linkend='build-directory'></link>.
</para>
<para>
To understand how to add features from within a recipe,
the best reference is
<filename>meta/classes/core-image.bbclass</filename>.
In summary, the file looks at the contents of the In summary, the file looks at the contents of the
<filename>IMAGE_FEATURES</filename> variable and then maps those <filename>IMAGE_FEATURES</filename> variable and then maps
contents into a set of tasks or packages. those contents into a set of package groups.
Based on this information, the build system automatically Based on this information, the build system automatically
generates the adds the appropriate packages to the
<filename><ulink url='&YOCTO_DOCS_REF_URL;#var-IMAGE_INSTALL'> IMAGE_INSTALL</ulink></filename> <ulink url='&YOCTO_DOCS_REF_URL;#var-IMAGE_INSTALL'><filename>IMAGE_INSTALL</filename></ulink>
variable. variable.
You can add extra features by extending the class or creating a Effectively, you are adding extra features by extending the
custom class for use with specialized image class or creating a custom class for use with specialized image
<filename>.bb</filename> files. <filename>.bb</filename> files.
You can also add more features by configuring the </para>
<filename><ulink url='&YOCTO_DOCS_REF_URL;#var-EXTRA_IMAGE_FEATURES'>EXTRA_IMAGE_FEATURES</ulink></filename>
variable in the <filename>local.conf</filename> file found in <para>
the <filename>local.conf</filename> file, which is located in Use the <filename>EXTRA_IMAGE_FEATURES</filename> variable
the <link linkend='build-directory'>Build Directory</link>. from within your local configuration file.
Using a separate area from which to define features with
this variable helps you avoid conflicting situations that
might arise from using the variable in the same manner as
the <filename>IMAGE_FEATURES</filename> variable.
</para> </para>
<para> <para>
@ -649,11 +664,21 @@
<para> <para>
You can customize your image and change these defaults. You can customize your image and change these defaults.
Edit <filename>IMAGE_FEATURES</filename> variable Edit the <filename>IMAGE_FEATURES</filename> variable
so that it configures the image you are working with to in your recipe or use the
include <filename>ssh-server-dropbear</filename> or <filename>EXTRA_IMAGE_FEATURES</filename> in your
<filename>local.conf</filename> file so that it configures the
image you are working with to include
<filename>ssh-server-dropbear</filename> or
<filename>ssh-server-openssh</filename>. <filename>ssh-server-openssh</filename>.
</para> </para>
<note>
See the
"<ulink url='&YOCTO_DOCS_REF_URL;#ref-images'>Images</ulink>"
section in the Yocto Project Reference Manual for a complete
list of image features that ship with the Yocto Project.
</note>
</section> </section>
<section id='usingpoky-extend-customimage-localconf'> <section id='usingpoky-extend-customimage-localconf'>
@ -3092,13 +3117,19 @@
variable. variable.
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>
You have a supported web server, such as Apache 2, You have a web server, such as Apache 2,
installed and configured on the development host. installed and configured on the development host.
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>
You have <filename>createrepo</filename> installed on You have <filename>createrepo</filename> installed on
the development host. the development host.
</para></listitem> </para></listitem>
<listitem><para>
You enable package management on the target by
listing "package-management" in the
<ulink url='&YOCTO_DOCS_REF_URL;#var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></ulink>
variable.
</para></listitem>
</itemizedlist> </itemizedlist>
</para> </para>
@ -3435,6 +3466,9 @@
read-only root filesystem: read-only root filesystem:
<literallayout class='monospaced'> <literallayout class='monospaced'>
IMAGE_FEATURES = "read-only-rootfs" IMAGE_FEATURES = "read-only-rootfs"
</literallayout>
or
<literallayout class='monospaced'>
EXTRA_IMAGE_FEATURES = "read-only-rootfs" EXTRA_IMAGE_FEATURES = "read-only-rootfs"
</literallayout> </literallayout>
</para> </para>