From 01aa5fc490abb76a8b1a9d2d373c42d3adb251af Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan-Simon=20M=C3=B6ller?= Date: Thu, 14 Apr 2016 18:10:01 +0200 Subject: [PATCH] Allow meta-agl-bsp to dynamically include recipes on demand MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This changeset introduces an improved handling of the recipe inclusion mechanism that allows us to conditionally include fixes for bsp's once (and only once) they are activated. This overcomes the need to use BB_DANGLINGAPPENDS_WARNONLY = 1 that was introduced in changeset 5527. Thus it can be removed again. Change-Id: I7ea10748e3015e781f1e96cfc01ac54e83d0cd5a Signed-off-by: Jan-Simon Möller --- meta-agl-bsp/conf/layer.conf | 8 +++++--- meta-agl-bsp/meta-ti/.gitkeep | 0 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 meta-agl-bsp/meta-ti/.gitkeep diff --git a/meta-agl-bsp/conf/layer.conf b/meta-agl-bsp/conf/layer.conf index b0010f7c6..c78c76299 100644 --- a/meta-agl-bsp/conf/layer.conf +++ b/meta-agl-bsp/conf/layer.conf @@ -1,9 +1,11 @@ # We have a conf and classes directory, add to BBPATH BBPATH =. "${LAYERDIR}:" -# We have recipes-* directories, add to BBFILES -BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ - ${LAYERDIR}/recipes-*/*/*.bbappend" +# Let us add layer-specific bbappends which are only applied when that +# layer is included in our configuration - +# e.g. only add layers if a bsp is present. +BBFILES += "${@' '.join('${LAYERDIR}/%s/recipes*/*/*.bbappend' % layer \ + for layer in BBFILE_COLLECTIONS.split())}" BBFILE_COLLECTIONS += "aglbsp" BBFILE_PATTERN_aglbsp = "^${LAYERDIR}/" diff --git a/meta-agl-bsp/meta-ti/.gitkeep b/meta-agl-bsp/meta-ti/.gitkeep new file mode 100644 index 000000000..e69de29bb -- 2.16.6