setting BB_DANGLINGAPPENDS_WARNONLY forces the policy for all layers.
If the user is expecting dangling appends to be errors, this hides
potential problems from them.
Signed-off-by: Ting Liu <ting.liu@freescale.com>
LICENSE_PATH += "${LAYERDIR}/custom-licenses"
-BB_DANGLINGAPPENDS_WARNONLY ?= "true"
+# Let us add layer-specific bbappends which are only applied when that
+# layer is included in our configuration
+BBFILES += "${@' '.join('${LAYERDIR}/%s/recipes*/*/*.bbappend' % layer \
+ for layer in BBFILE_COLLECTIONS.split())}"