summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2012-02-22 15:12:38 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-08 12:08:02 -0800
commitd035bb875f81a501e265e278ec0c552fe0cd4e3b (patch)
treea0f01ce563290229764928bb90673679e2f5f89e
parent93ad9b5f0075b56c87a585281750ad1c7789c2e9 (diff)
downloadpoky-d035bb875f81a501e265e278ec0c552fe0cd4e3b.tar.gz
documentation/bsp-guide/bsp.xml: Edits to "Layer Configuration File" section.
(From yocto-docs rev: 78d36baa57fe9c95bdd39eb63a5bada6a1a5ee64) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--documentation/bsp-guide/bsp.xml23
1 files changed, 17 insertions, 6 deletions
diff --git a/documentation/bsp-guide/bsp.xml b/documentation/bsp-guide/bsp.xml
index 08c90b46c1..a957409ec8 100644
--- a/documentation/bsp-guide/bsp.xml
+++ b/documentation/bsp-guide/bsp.xml
@@ -304,28 +304,39 @@
304 Project layer, identifies the 304 Project layer, identifies the
305 contents of the layer, and contains information about how Yocto Project should use it. 305 contents of the layer, and contains information about how Yocto Project should use it.
306 Generally, a standard boilerplate file such as the following works. 306 Generally, a standard boilerplate file such as the following works.
307 In the following example you would replace "bsp" and "_bsp" with the actual name 307 In the following example, you would replace "<filename>bsp</filename>" and
308 of the BSP (i.e. &lt;bsp_name&gt; from the example template). 308 "<filename>_bsp</filename>" with the actual name
309 of the BSP (i.e. <filename>&lt;bsp_name&gt;</filename> from the example template).
309 </para> 310 </para>
310 311
311 <para> 312 <para>
312 <literallayout class='monospaced'> 313 <literallayout class='monospaced'>
313 # We have a conf directory, add to BBPATH 314 # We have a conf and classes directory, add to BBPATH
314 BBPATH := "${BBPATH}:${LAYERDIR}" 315 BBPATH := "${BBPATH}:${LAYERDIR}"
315 316
316 # We have a recipes directory containing .bb and .bbappend files, add to BBFILES 317 # We have a recipes directory, add to BBFILES
317 BBFILES := "${BBFILES} ${LAYERDIR}/recipes/*/*.bb \ 318 BBFILES := "${BBFILES} ${LAYERDIR}/recipes/*/*.bb \
318 ${LAYERDIR}/recipes/*/*.bbappend" 319 ${LAYERDIR}/recipes/*/*.bbappend"
319 320
320 BBFILE_COLLECTIONS += "bsp" 321 BBFILE_COLLECTIONS += "bsp"
321 BBFILE_PATTERN_bsp := "^${LAYERDIR}/" 322 BBFILE_PATTERN_bsp := "^${LAYERDIR}/"
322 BBFILE_PRIORITY_bsp = "5" 323 BBFILE_PRIORITY_bsp = "6"
324 </literallayout>
325 </para>
326
327 <para>
328 To illustrate the string substitutions, here are the last three statements from the Crown
329 Bay <filename>conf/layer.conf</filename> file:
330 <literallayout class='monospaced'>
331 BBFILE_COLLECTIONS += "crownbay"
332 BBFILE_PATTERN_crownbay := "^${LAYERDIR}/"
333 BBFILE_PRIORITY_crownbay = "6"
323 </literallayout> 334 </literallayout>
324 </para> 335 </para>
325 336
326 <para> 337 <para>
327 This file simply makes BitBake aware of the recipes and configuration directories. 338 This file simply makes BitBake aware of the recipes and configuration directories.
328 This file must exist so that the Yocto Project build system can recognize the BSP. 339 The file must exist so that the Yocto Project build system can recognize the BSP.
329 </para> 340 </para>
330 </section> 341 </section>
331 342