You can find this file in the BSP Layer at:
meta-bsp_root_name
/conf/layer.conf
The conf/layer.conf
file
identifies the file structure as a layer,
identifies the contents of the layer, and
contains information about how the build system should
use it.
Generally, a standard boilerplate file such as the
following works.
In the following example, you would replace
bsp
with the actual
name of the BSP (i.e.
bsp_root_name
from the example
template).
# We have a conf and classes directory, add to BBPATH BBPATH .= ":${LAYERDIR}" # We have a recipes directory, add to BBFILES BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ ${LAYERDIR}/recipes-*/*/*.bbappend" BBFILE_COLLECTIONS += "bsp
" BBFILE_PATTERN_bsp
= "^${LAYERDIR}/" BBFILE_PRIORITY_bsp
= "6" LAYERDEPENDS_bsp
= "intel"
To illustrate the string substitutions, here are
the corresponding statements from the Raspberry
Pi conf/layer.conf
file:
# We have a conf and classes directory, append to BBPATH BBPATH .= ":${LAYERDIR}" # We have a recipes directory containing .bb and .bbappend files, add to BBFILES BBFILES += "${LAYERDIR}/recipes*/*/*.bb \ ${LAYERDIR}/recipes*/*/*.bbappend" BBFILE_COLLECTIONS += "raspberrypi" BBFILE_PATTERN_raspberrypi := "^${LAYERDIR}/" BBFILE_PRIORITY_raspberrypi = "9" # Additional license directories. LICENSE_PATH += "${LAYERDIR}/files/custom-licenses" . . .
This file simply makes BitBake aware of the recipes and configuration directories. The file must exist so that the OpenEmbedded build system can recognize the BSP.