From f00ba684e0a3d1bda15a6ca06cc4cd466f1eada0 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 6 Dec 2012 13:36:03 -0600 Subject: Documentation: dev-manual, bsp-guide, poky-ref-manual - bblayer.conf updates Fixes [YOCTO #3176] Several places throughout the YP manual set examples are given for the bblayer.conf file. For release 1.3, a bug existed that surfaced when a user removed either the meta or meta-yocto layer from this configuration file. The bug has been fixed and the ripple effect through the YP documentation set affected several manuals. Fixes include updating the code samples that show bblayer.conf so that they now include the BBLAYERS_NON_REMOVABLE variable, a new glossary entry for the variable, and an explanation of both BBLAYER and BBLAYER_NON_REMOVABLE in the section that talks about the bblayer.conf file. (From yocto-docs rev: 904b9ec1cd6d823af0e92f6891fc7e434cf2e358) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/poky-ref-manual/ref-structure.xml | 11 +++++++- documentation/poky-ref-manual/ref-variables.xml | 33 ++++++++++++++++++++++ .../poky-ref-manual/technical-details.xml | 6 +++- 3 files changed, 48 insertions(+), 2 deletions(-) (limited to 'documentation/poky-ref-manual') diff --git a/documentation/poky-ref-manual/ref-structure.xml b/documentation/poky-ref-manual/ref-structure.xml index c2644df374..166907ceef 100644 --- a/documentation/poky-ref-manual/ref-structure.xml +++ b/documentation/poky-ref-manual/ref-structure.xml @@ -247,11 +247,20 @@ <filename>build/conf/bblayers.conf</filename> - This file defines layers, which is a directory tree, traversed (or walked) by BitBake. + This file defines layers, which are directory trees, traversed (or walked) by BitBake. If bblayers.conf is not present, it is created from bblayers.conf.sample when you source the environment setup script. + + + The bblayers.conf file uses the + BBLAYERS variable to + list the layers BitBake tries to find. + The file uses the + BBLAYERS_NON_REMOVABLE + variable to list layers that must not be removed. +
diff --git a/documentation/poky-ref-manual/ref-variables.xml b/documentation/poky-ref-manual/ref-variables.xml index 9ced42499e..0de6bfcf5c 100644 --- a/documentation/poky-ref-manual/ref-variables.xml +++ b/documentation/poky-ref-manual/ref-variables.xml @@ -421,6 +421,11 @@ /home/scottrif/poky/meta-yocto \ /home/scottrif/poky/meta-yocto-bsp \ /home/scottrif/poky/meta-mykernel \ + " + + BBLAYERS_NON_REMOVABLE ?= " \ + /home/scottrif/poky/meta \ + /home/scottrif/poky/meta-yocto \ " This example enables four layers, one of which is a custom, user-defined layer @@ -429,6 +434,34 @@ + BBLAYERS_NON_REMOVABLE + +Core layer for images cannot be removed + Lists core layers that cannot be removed from the + bblayers.conf file. + In order for BitBake to build your image, your + bblayers.conf file must include the + meta and meta-yocto + core layers. + Here is an example that shows these two layers listed in + the BBLAYERS_NON_REMOVABLE statement: + + BBLAYERS = " \ + /home/scottrif/poky/meta \ + /home/scottrif/poky/meta-yocto \ + /home/scottrif/poky/meta-yocto-bsp \ + /home/scottrif/poky/meta-mykernel \ + " + + BBLAYERS_NON_REMOVABLE ?= " \ + /home/scottrif/poky/meta \ + /home/scottrif/poky/meta-yocto \ + " + + + + + BP The base recipe name and version but without any special diff --git a/documentation/poky-ref-manual/technical-details.xml b/documentation/poky-ref-manual/technical-details.xml index 654d9252a9..042a96ed87 100644 --- a/documentation/poky-ref-manual/technical-details.xml +++ b/documentation/poky-ref-manual/technical-details.xml @@ -662,7 +662,11 @@ /home/nitin/prj/poky.git/meta-yocto \ /home/nitin/prj/poky.git/meta-yocto-bsp \ /home/nitin/prj/meta-x32.git \ - " + " + BBLAYERS_NON_REMOVABLE ?= " \ + /home/nitin/prj/poky.git/meta \ + /home/nitin/prj/poky.git/meta-yocto \ + " Enable the x32 psABI tuning file for x86_64 machines by editing the conf/local.conf like this: -- cgit v1.2.3-54-g00ecf