From f14807643c71087992ceeb50f0ec30a644b43c3d Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Wed, 30 Apr 2014 17:25:13 +0200 Subject: [PATCH] meta-digi-dey: handle dynamic layer configuration Patch taken from meta-mentor and meta-fsl-arm. Signed-off-by: Javier Viguera --- meta-digi-dey/conf/layer.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta-digi-dey/conf/layer.conf b/meta-digi-dey/conf/layer.conf index d120524cf..ea067e36f 100644 --- a/meta-digi-dey/conf/layer.conf +++ b/meta-digi-dey/conf/layer.conf @@ -5,6 +5,11 @@ BBPATH .= ":${LAYERDIR}" 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 +BBFILES += "${@' '.join('${LAYERDIR}/other-layers/%s/recipes*/*/*.bbappend' % layer \ + for layer in BBFILE_COLLECTIONS.split())}" + BBFILE_COLLECTIONS += "dey" BBFILE_PATTERN_dey := "^${LAYERDIR}/" BBFILE_PRIORITY_dey = "6"