From d035bb875f81a501e265e278ec0c552fe0cd4e3b Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Wed, 22 Feb 2012 15:12:38 -0600 Subject: documentation/bsp-guide/bsp.xml: Edits to "Layer Configuration File" section. (From yocto-docs rev: 78d36baa57fe9c95bdd39eb63a5bada6a1a5ee64) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/bsp-guide/bsp.xml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'documentation/bsp-guide/bsp.xml') 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 @@ Project layer, identifies the contents of the layer, and contains information about how Yocto Project should use it. Generally, a standard boilerplate file such as the following works. - In the following example you would replace "bsp" and "_bsp" with the actual name - of the BSP (i.e. <bsp_name> from the example template). + In the following example, you would replace "bsp" and + "_bsp" with the actual name + of the BSP (i.e. <bsp_name> from the example template). - # We have a conf directory, add to BBPATH + # We have a conf and classes directory, add to BBPATH BBPATH := "${BBPATH}:${LAYERDIR}" - # We have a recipes directory containing .bb and .bbappend files, add to BBFILES + # We have a recipes directory, add to BBFILES BBFILES := "${BBFILES} ${LAYERDIR}/recipes/*/*.bb \ ${LAYERDIR}/recipes/*/*.bbappend" BBFILE_COLLECTIONS += "bsp" BBFILE_PATTERN_bsp := "^${LAYERDIR}/" - BBFILE_PRIORITY_bsp = "5" + BBFILE_PRIORITY_bsp = "6" + + + + + To illustrate the string substitutions, here are the last three statements from the Crown + Bay conf/layer.conf file: + + BBFILE_COLLECTIONS += "crownbay" + BBFILE_PATTERN_crownbay := "^${LAYERDIR}/" + BBFILE_PRIORITY_crownbay = "6" This file simply makes BitBake aware of the recipes and configuration directories. - This file must exist so that the Yocto Project build system can recognize the BSP. + The file must exist so that the Yocto Project build system can recognize the BSP. -- cgit v1.2.3-54-g00ecf