From 2a0a3d631a67dee5a2592fef64ea203c42da8f7d Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Fri, 27 Jan 2012 14:23:48 -0600 Subject: documentation/poky-ref-manual/extendpoky.xml: proposed section This is a proposed section to describe how to customize an image through variable setting in the local.conf file. It is incomplete but needs to be checked out and discussed. (From yocto-docs rev: f995b01e9ec9dd12b62e514802000a7b76fe3126) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/poky-ref-manual/extendpoky.xml | 64 ++++++++++++++++++++++++++-- 1 file changed, 61 insertions(+), 3 deletions(-) diff --git a/documentation/poky-ref-manual/extendpoky.xml b/documentation/poky-ref-manual/extendpoky.xml index 56b806de0b..8c1e343889 100644 --- a/documentation/poky-ref-manual/extendpoky.xml +++ b/documentation/poky-ref-manual/extendpoky.xml @@ -468,6 +468,64 @@ +
+ Customizing Images Using <filename>local.conf</filename> + + + While not recommended, it is possible to include or exclude packages in the + image by setting variables in the conf/local.conf file in + the Yocto Project build directory. + + The best way to add packages to an image is to create a layer that contains + recipes to specifically add the packages. + Using variables with the local.conf to add things + to images could result in ordering problems or even leave you with a + build system that seemingly adds "random" packages to the image. + For example, if you use the same or a copied local.conf + for another project, you might have forgotten about something you added + for a previous project. + + This section describes some of the ways you could include or exclude packages + in the image through use of the conf/local.conf file. + + +
+ Adding Packages + + + Following are some methods to add packages to the image through the + use of variables in the conf/local.conf: + + IMAGE_INSTALL_append - + Some explanation + POKY_EXTRA_append - + Some explanation + POKY_EXTRA_INSTALL - + Some explanation + + +
+ +
+ Excluding Packages + + + It is possible to filter or mask out recipe and recipe append files such that + BitBake ignores them. + You can do this by providing an expression with the + BBMASK variable. + Here is an example: + + BBMASK = ".*/meta-mymachine/recipes-maybe/" + + Here, all .bb and .bbappend files + in the directory that matches the expression are ignored during the build + process. + +
+
-- cgit v1.2.3-54-g00ecf