From eb84088b6eebcc406c6131fa7035d8aa05cb7dc3 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Thu, 4 Apr 2013 10:35:10 -0700 Subject: ref-manual, dev-manual, bsp-guide: Applied Paul Eggleton Build history patch 4 of 5. * BBFILES should be appended to with += * BBPATH should be appended to with .= * Immediate expansion is not necessary for BBFILE_PRIORITY * Immediate expansion is not necessary for references in layer.conf to LAYERDIR since these are automatically expanded at the end of parsing the file (and have been for some time). * Add collection name override to BBFILE_PRIORITY example * Fix comments referring to old structure ("packages directory" or "recipes directory") (From yocto-docs rev: 0aaac8f5ad97c802ebe1d4f3ffb7987050533292) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../dev-manual/dev-manual-common-tasks.xml | 27 ++++++++++------------ 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'documentation/dev-manual') diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index 031d9fca37..629f64a427 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml @@ -106,14 +106,14 @@ required syntax: # We have a conf and classes directory, add to BBPATH - BBPATH := "${BBPATH}:${LAYERDIR}" + BBPATH .= ":${LAYERDIR}" - # We have a packages directory, add to BBFILES - BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb \ + # We have recipes-* directories, add to BBFILES + BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ ${LAYERDIR}/recipes-*/*/*.bbappend" BBFILE_COLLECTIONS += "yoctobsp" - BBFILE_PATTERN_yoctobsp := "^${LAYERDIR}/" + BBFILE_PATTERN_yoctobsp = "^${LAYERDIR}/" BBFILE_PRIORITY_yoctobsp = "5" Here is an explanation of the example: @@ -148,9 +148,9 @@ used to match files from BBFILES into a particular layer. - In this case, immediate expansion of + In this case, LAYERDIR - sets BBFILE_PATTERN to the + is used to make BBFILE_PATTERN match within the layer's path. The BBFILE_PRIORITY @@ -162,10 +162,7 @@ Note the use of the LAYERDIR - variable with the immediate expansion operator. - The LAYERDIR variable expands to the directory of the current layer and - requires the immediate expansion operator so that BitBake does not wait to expand the variable - when it's parsing a different directory. + variable, which expands to the directory of the current layer. Through the use of the BBPATH variable, BitBake locates .bbclass files, configuration files, and files that are included with include @@ -402,7 +399,7 @@ variable. For example: - BBFILE_PRIORITY := "1" + BBFILE_PRIORITY_mylayer = "1" @@ -1963,14 +1960,14 @@ the layer.conf file as follows: # We have a conf and classes directory, add to BBPATH - BBPATH := "${BBPATH}:${LAYERDIR}" + BBPATH .= ":${LAYERDIR}" - # We have a packages directory, add to BBFILES - BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb \ + # We have recipes-* directories, add to BBFILES + BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ ${LAYERDIR}/recipes-*/*/*.bbappend" BBFILE_COLLECTIONS += "mylayer" - BBFILE_PATTERN_mylayer := "^${LAYERDIR}/" + BBFILE_PATTERN_mylayer = "^${LAYERDIR}/" BBFILE_PRIORITY_mylayer = "5" Notice mylayer as part of the last three -- cgit v1.2.3-54-g00ecf