X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=meta-agl-bsp%2Fconf%2Flayer.conf;h=fdde8350e29f2816a86cff1542a69eb33d3ca8b0;hb=2b0260759b5e6643b98fd18982ee9ccd7ecb13e8;hp=b0010f7c6ca2e7f29ce84fefca0d07feb7f7f34b;hpb=35239b09e077bc578b36729a02771e34b11ecafb;p=AGL%2Fmeta-agl.git diff --git a/meta-agl-bsp/conf/layer.conf b/meta-agl-bsp/conf/layer.conf index b0010f7c6..fdde8350e 100644 --- a/meta-agl-bsp/conf/layer.conf +++ b/meta-agl-bsp/conf/layer.conf @@ -1,9 +1,14 @@ # 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())}" + +# Add shared recipes among BSPs +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend" BBFILE_COLLECTIONS += "aglbsp" BBFILE_PATTERN_aglbsp = "^${LAYERDIR}/"