X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=AGL%2Fmeta-agl.git;a=blobdiff_plain;f=meta-agl-bsp%2Fconf%2Flayer.conf;h=c78c76299c5ad8919975dbfca33c6fcb812ede1e;hp=b0010f7c6ca2e7f29ce84fefca0d07feb7f7f34b;hb=01aa5fc490abb76a8b1a9d2d373c42d3adb251af;hpb=f431a64246282e068570519b137cc8670521addd 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}/"