diff options
Diffstat (limited to 'documentation/bsp-guide/bsp.xml')
-rw-r--r-- | documentation/bsp-guide/bsp.xml | 23 |
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. <bsp_name> from the example template). | 308 | "<filename>_bsp</filename>" with the actual name |
309 | of the BSP (i.e. <filename><bsp_name></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 | ||