From a98a2b72be32a089d07b6613941bb371a4c2803c Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Tue, 9 Aug 2016 16:27:11 +0200 Subject: add layer.conf Signed-off-by: Max Krummenacher Acked-by: Stefan Agner --- conf/layer.conf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 conf/layer.conf (limited to 'conf') diff --git a/conf/layer.conf b/conf/layer.conf new file mode 100644 index 0000000..3b1666b --- /dev/null +++ b/conf/layer.conf @@ -0,0 +1,18 @@ +# We have a conf and classes directory, add to BBPATH +BBPATH .= ":${LAYERDIR}" + +# We have a recipes-* directories, add to BBFILES +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" + +BBFILE_COLLECTIONS += "toradex-nxp-layer" +BBFILE_PATTERN_toradex-nxp-layer = "^${LAYERDIR}/" +BBFILE_PRIORITY_toradex-nxp-layer = "90" + +# Let us add layer-specific bbappends which are only applied when that +# layer is included in our configuration +BBFILES += "${@' '.join('${LAYERDIR}/%s/recipes*/*/*.bbappend' % layer \ + for layer in BBFILE_COLLECTIONS.split())}" +# Add layer-specific bb files too +BBFILES += "${@' '.join('${LAYERDIR}/%s/recipes*/*/*.bb' % layer \ + for layer in BBFILE_COLLECTIONS.split())}" -- cgit v1.2.3