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 <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
2b83480cb1
commit
eb84088b6e
|
@ -312,14 +312,14 @@
|
||||||
<para>
|
<para>
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
# We have a conf and classes directory, add to BBPATH
|
# We have a conf and classes directory, add to BBPATH
|
||||||
BBPATH := "${BBPATH}:${LAYERDIR}"
|
BBPATH .= ":${LAYERDIR}"
|
||||||
|
|
||||||
# We have a recipes directory, add to BBFILES
|
# We have recipes-* directories, add to BBFILES
|
||||||
BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*.bb \
|
BBFILES += "${LAYERDIR}/recipes-*/*.bb \
|
||||||
${LAYERDIR}/recipes-*/*.bbappend"
|
${LAYERDIR}/recipes-*/*.bbappend"
|
||||||
|
|
||||||
BBFILE_COLLECTIONS += "bsp"
|
BBFILE_COLLECTIONS += "bsp"
|
||||||
BBFILE_PATTERN_bsp := "^${LAYERDIR}/"
|
BBFILE_PATTERN_bsp = "^${LAYERDIR}/"
|
||||||
BBFILE_PRIORITY_bsp = "6"
|
BBFILE_PRIORITY_bsp = "6"
|
||||||
</literallayout>
|
</literallayout>
|
||||||
</para>
|
</para>
|
||||||
|
@ -329,7 +329,7 @@
|
||||||
Bay <filename>conf/layer.conf</filename> file:
|
Bay <filename>conf/layer.conf</filename> file:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
BBFILE_COLLECTIONS += "crownbay"
|
BBFILE_COLLECTIONS += "crownbay"
|
||||||
BBFILE_PATTERN_crownbay := "^${LAYERDIR}/"
|
BBFILE_PATTERN_crownbay = "^${LAYERDIR}/"
|
||||||
BBFILE_PRIORITY_crownbay = "6"
|
BBFILE_PRIORITY_crownbay = "6"
|
||||||
</literallayout>
|
</literallayout>
|
||||||
</para>
|
</para>
|
||||||
|
|
|
@ -106,14 +106,14 @@
|
||||||
required syntax:
|
required syntax:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
# We have a conf and classes directory, add to BBPATH
|
# We have a conf and classes directory, add to BBPATH
|
||||||
BBPATH := "${BBPATH}:${LAYERDIR}"
|
BBPATH .= ":${LAYERDIR}"
|
||||||
|
|
||||||
# We have a packages directory, add to BBFILES
|
# We have recipes-* directories, add to BBFILES
|
||||||
BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb \
|
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
|
||||||
${LAYERDIR}/recipes-*/*/*.bbappend"
|
${LAYERDIR}/recipes-*/*/*.bbappend"
|
||||||
|
|
||||||
BBFILE_COLLECTIONS += "yoctobsp"
|
BBFILE_COLLECTIONS += "yoctobsp"
|
||||||
BBFILE_PATTERN_yoctobsp := "^${LAYERDIR}/"
|
BBFILE_PATTERN_yoctobsp = "^${LAYERDIR}/"
|
||||||
BBFILE_PRIORITY_yoctobsp = "5"
|
BBFILE_PRIORITY_yoctobsp = "5"
|
||||||
</literallayout></para>
|
</literallayout></para>
|
||||||
<para>Here is an explanation of the example:
|
<para>Here is an explanation of the example:
|
||||||
|
@ -148,9 +148,9 @@
|
||||||
used to match files from
|
used to match files from
|
||||||
<filename>BBFILES</filename> into a particular
|
<filename>BBFILES</filename> into a particular
|
||||||
layer.
|
layer.
|
||||||
In this case, immediate expansion of
|
In this case,
|
||||||
<filename><ulink url='&YOCTO_DOCS_REF_URL;#var-LAYERDIR'>LAYERDIR</ulink></filename>
|
<filename><ulink url='&YOCTO_DOCS_REF_URL;#var-LAYERDIR'>LAYERDIR</ulink></filename>
|
||||||
sets <filename>BBFILE_PATTERN</filename> to the
|
is used to make <filename>BBFILE_PATTERN</filename> match within the
|
||||||
layer's path.</para></listitem>
|
layer's path.</para></listitem>
|
||||||
<listitem><para>The
|
<listitem><para>The
|
||||||
<filename><ulink url='&YOCTO_DOCS_REF_URL;#var-BBFILE_PRIORITY'>BBFILE_PRIORITY</ulink></filename>
|
<filename><ulink url='&YOCTO_DOCS_REF_URL;#var-BBFILE_PRIORITY'>BBFILE_PRIORITY</ulink></filename>
|
||||||
|
@ -162,10 +162,7 @@
|
||||||
</itemizedlist></para>
|
</itemizedlist></para>
|
||||||
<para>Note the use of the
|
<para>Note the use of the
|
||||||
<filename><ulink url='&YOCTO_DOCS_REF_URL;#var-LAYERDIR'>LAYERDIR</ulink></filename>
|
<filename><ulink url='&YOCTO_DOCS_REF_URL;#var-LAYERDIR'>LAYERDIR</ulink></filename>
|
||||||
variable with the immediate expansion operator.
|
variable, which expands to the directory of the current layer.</para>
|
||||||
The <filename>LAYERDIR</filename> 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.</para>
|
|
||||||
<para>Through the use of the <filename>BBPATH</filename> variable,
|
<para>Through the use of the <filename>BBPATH</filename> variable,
|
||||||
BitBake locates <filename>.bbclass</filename> files, configuration
|
BitBake locates <filename>.bbclass</filename> files, configuration
|
||||||
files, and files that are included with <filename>include</filename>
|
files, and files that are included with <filename>include</filename>
|
||||||
|
@ -402,7 +399,7 @@
|
||||||
variable.
|
variable.
|
||||||
For example:
|
For example:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
BBFILE_PRIORITY := "1"
|
BBFILE_PRIORITY_mylayer = "1"
|
||||||
</literallayout>
|
</literallayout>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
@ -1963,14 +1960,14 @@
|
||||||
the <filename>layer.conf</filename> file as follows:
|
the <filename>layer.conf</filename> file as follows:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
# We have a conf and classes directory, add to BBPATH
|
# We have a conf and classes directory, add to BBPATH
|
||||||
BBPATH := "${BBPATH}:${LAYERDIR}"
|
BBPATH .= ":${LAYERDIR}"
|
||||||
|
|
||||||
# We have a packages directory, add to BBFILES
|
# We have recipes-* directories, add to BBFILES
|
||||||
BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb \
|
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
|
||||||
${LAYERDIR}/recipes-*/*/*.bbappend"
|
${LAYERDIR}/recipes-*/*/*.bbappend"
|
||||||
|
|
||||||
BBFILE_COLLECTIONS += "mylayer"
|
BBFILE_COLLECTIONS += "mylayer"
|
||||||
BBFILE_PATTERN_mylayer := "^${LAYERDIR}/"
|
BBFILE_PATTERN_mylayer = "^${LAYERDIR}/"
|
||||||
BBFILE_PRIORITY_mylayer = "5"
|
BBFILE_PRIORITY_mylayer = "5"
|
||||||
</literallayout>
|
</literallayout>
|
||||||
Notice <filename>mylayer</filename> as part of the last three
|
Notice <filename>mylayer</filename> as part of the last three
|
||||||
|
|
|
@ -1869,10 +1869,8 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
|
||||||
<glossdef>
|
<glossdef>
|
||||||
<para>When used inside the <filename>layer.conf</filename> configuration
|
<para>When used inside the <filename>layer.conf</filename> configuration
|
||||||
file, this variable provides the path of the current layer.
|
file, this variable provides the path of the current layer.
|
||||||
This variable requires immediate expansion
|
This variable is not available outside of <filename>layer.conf</filename>
|
||||||
(see the BitBake manual) as lazy expansion can result in
|
and references are expanded immediately when parsing of the file completes.</para>
|
||||||
the expansion happening in the wrong directory and therefore
|
|
||||||
giving the wrong value.</para>
|
|
||||||
</glossdef>
|
</glossdef>
|
||||||
</glossentry>
|
</glossentry>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue