X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=meta-speech-framework%2Fconf%2Flayer.conf;h=ce97b9e04c49c7d16759129705da7b2e3fdcc71c;hb=a84026b447df0add471eb73e782a15311c013802;hp=8ab7eb012a521167bd8967893c28a900fd331b4b;hpb=ce687dbdb3a56d42a042240509b38dbd5abdb038;p=AGL%2Fmeta-agl-devel.git diff --git a/meta-speech-framework/conf/layer.conf b/meta-speech-framework/conf/layer.conf index 8ab7eb01..ce97b9e0 100644 --- a/meta-speech-framework/conf/layer.conf +++ b/meta-speech-framework/conf/layer.conf @@ -1,6 +1,21 @@ # We have a conf and classes directory, add to BBPATH BBPATH .= ":${LAYERDIR}" +# 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. +# This is based on the BBFILE_COLLECTIONS name of the layer. +# We use either the BBFILE_COLLECTIONS name of the layer directly (meta-ti) +BBFILES += "${@' '.join('${LAYERDIR}/%s/recipes*/*/*.bbappend' % layer \ + for layer in BBFILE_COLLECTIONS.split())}" +BBFILES += "${@' '.join('${LAYERDIR}/%s/recipes*/*/*.bb' % layer \ + for layer in BBFILE_COLLECTIONS.split())}" +# or we prepend it with meta- (e.g. rpi, fsl*) +BBFILES += "${@' '.join('${LAYERDIR}/meta-%s/recipes*/*/*.bbappend' % layer \ + for layer in BBFILE_COLLECTIONS.split())}" +BBFILES += "${@' '.join('${LAYERDIR}/meta-%s/recipes*/*/*.bb' % layer \ + for layer in BBFILE_COLLECTIONS.split())}" + # We have recipes-* directories, add to BBFILES BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ ${LAYERDIR}/recipes-*/*/*.bbappend"