aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2016-02-08 17:58:43 +0000
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2016-02-09 14:47:21 +0000
commite1eb352e47e292665191a9c26143f40d2f3fcbcd (patch)
treeb41c5c1a79610ba7f420724a77496f6062bdd8c0
parent1137bfd5917efba060c1c2c04e41d8c120b9f5bd (diff)
downloadmeta-qcom-e1eb352e47e292665191a9c26143f40d2f3fcbcd.tar.gz
meta-qcom-e1eb352e47e292665191a9c26143f40d2f3fcbcd.tar.bz2
meta-qcom-e1eb352e47e292665191a9c26143f40d2f3fcbcd.zip
conf/layer.conf: allow adding recipes based on current enabled layers
we might need to do some customization (bbappend, or new recipes) only if our BSP layer is used with others layers. So this commit will dynamically include *.bb and *.bbappend from <other layer>/*, for each layer currently in use. This is reusing the logic found in meta-fsl-arm. Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
-rw-r--r--conf/layer.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/conf/layer.conf b/conf/layer.conf
index 61a4870..ed3f7af 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -10,3 +10,12 @@ BBFILE_PATTERN_qcom := "^${LAYERDIR}/"
BBFILE_PRIORITY_qcom = "5"
QCOM_EULA_FILE = "${LAYERDIR}/conf/EULA"
+
+# Let us add layer-specific bbappends which are only applied when that
+# layer is included in our configuration
+# includes customization and/or backports
+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())}"