From ba0e818504408df89612c53ad5e45ffef846fa02 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 30 Jan 2012 17:11:38 -0600 Subject: documentation/poky-ref-manual: Updates to IMAGE_INSTALL Updated the glossary entry for the IMAGE_INSTALL variable. It was not complete. I also updated the section that describes how to modify the image through the local.conf file. These edits are out on review with Richard and could undergo some further tweaks. Fixes [YOCTO #1897] (From yocto-docs rev: 41124cdd9e69b9f17300a609cce2ae4c9ce57b54) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/poky-ref-manual/ref-variables.xml | 39 ++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) (limited to 'documentation/poky-ref-manual/ref-variables.xml') diff --git a/documentation/poky-ref-manual/ref-variables.xml b/documentation/poky-ref-manual/ref-variables.xml index 1a958773b9..8efd46a848 100644 --- a/documentation/poky-ref-manual/ref-variables.xml +++ b/documentation/poky-ref-manual/ref-variables.xml @@ -533,7 +533,44 @@ IMAGE_INSTALL - The list of packages used to build images. + + Specifies the packages to install into an image. + The IMAGE_INSTALL variable is a mechanism for an image + recipe and you should use it with care to avoid ordering issues. + + + + Image recipes set IMAGE_INSTALL to specify the + packages to install into an image through image.bbclass. + Additionally, "helper" classes exist, such as core-image.bbclass, + that can take + IMAGE_FEATURE lists + and turn these into auto-generated entries in + IMAGE_INSTALL in addition to its default contents. + + + + Using IMAGE_INSTALL with the += + operator from the /conf/local.conf file or from within + an image recipe is not recommended as it can cause ordering issues. + Since core-image.bbclass sets IMAGE_INSTALL + to a default value using the ?= operator, using a + += operation against IMAGE_INSTALL + previously from the /conf/local.conf will almost always fail. + Furthermore, the same operation from with an image recipe may or may not + succeed depending on the specific situation. + In both these cases, the behavior is contrary to how most users expect + the += append operator to work. + + + + When you use this variable, it is best to use it as follows: + + IMAGE_INSTALL_append " package-name" + + Be sure to include the space between the quotation character and the start of the + package name. + -- cgit v1.2.3-54-g00ecf