summaryrefslogtreecommitdiffstats
path: root/handbook
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-06-08 17:53:25 +0100
committerJoshua Lock <josh@linux.intel.com>2010-06-08 17:53:25 +0100
commitfcd220b4fd254f45305fb65512e53d0371dc466c (patch)
treef78e4e8ff10debe8a5651c32b1348fe57e76f691 /handbook
parent49df0b84fa434e7eb40dc8c4942d6df1495c4892 (diff)
downloadpoky-fcd220b4fd254f45305fb65512e53d0371dc466c.tar.gz
handbook: document the LAYERDIR variable
LAYERDIR is one of the few variables which requires immediate expansion and is worth documenting explicitly. Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'handbook')
-rw-r--r--handbook/extendpoky.xml9
-rw-r--r--handbook/ref-variables.xml9
2 files changed, 16 insertions, 2 deletions
diff --git a/handbook/extendpoky.xml b/handbook/extendpoky.xml
index b437c77fa3..936a74480e 100644
--- a/handbook/extendpoky.xml
+++ b/handbook/extendpoky.xml
@@ -582,12 +582,17 @@ require conf/distro/include/poky-extras-src-revisions.inc
582 As can be seen, the layers recipes are added to BBFILES. The 582 As can be seen, the layers recipes are added to BBFILES. The
583 BBFILE_COLLECTIONS variable is then appended to with the 583 BBFILE_COLLECTIONS variable is then appended to with the
584 layer name. The BBFILE_PATTERN variable is immediately expanded 584 layer name. The BBFILE_PATTERN variable is immediately expanded
585 with a regular expression used to match files from BBFILES into a 585 with a regular expression used to match files from BBFILES into
586 particular layer, in this case by using the base pathname. 586 a particular layer, in this case by using the base pathname.
587 The BBFILE_PRIORITY variable then assigns different 587 The BBFILE_PRIORITY variable then assigns different
588 priorities to the files in different layers. This is useful 588 priorities to the files in different layers. This is useful
589 in situations where the same package might appear in multiple 589 in situations where the same package might appear in multiple
590 layers and allows you to choose which layer should 'win'. 590 layers and allows you to choose which layer should 'win'.
591 Note the use of LAYERDIR with the immediate expansion operator.
592 LAYERDIR expands to the directory of the current layer and
593 requires use of the immediate expansion operator so that Bitbake
594 does not lazily expand the variable when it's parsing a
595 different directory.
591 </para> 596 </para>
592 597
593 <para> 598 <para>
diff --git a/handbook/ref-variables.xml b/handbook/ref-variables.xml
index 7bbcdb81f0..e4523bfdc1 100644
--- a/handbook/ref-variables.xml
+++ b/handbook/ref-variables.xml
@@ -403,6 +403,15 @@
403 403
404 <glossdiv id='var-glossary-l'><title>L</title> 404 <glossdiv id='var-glossary-l'><title>L</title>
405 405
406 <glossentry id='var-LAYERDIR'><glossterm>LAYERDIR</glossterm>
407 <glossdef>
408 <para>When used inside a layer.conf gives the path of the
409 current layer. This variable requires immediate expansion
410 (see the Bitbake manual) as lazy expansion can result in
411 the expansion happening in the wrong directory and therefore
412 giving the wrong value.</para>
413 </glossdef>
414 </glossentry>
406 <glossentry id='var-LICENSE'><glossterm>LICENSE</glossterm> 415 <glossentry id='var-LICENSE'><glossterm>LICENSE</glossterm>
407 <glossdef> 416 <glossdef>
408 <para>List of package source licenses.</para> 417 <para>List of package source licenses.</para>