From e2432d3bb42e1d6c58f4665a8817e5b18e142a58 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Mon, 25 Sep 2017 10:40:34 -0300 Subject: [PATCH] layer.conf: Add Dynamic Layer mechanism This allow for bbappend files to be enabled when specific layers are included. Change-Id: Iecbcf0de85a64aad71605b60ecd3d9a2586fae85 Signed-off-by: Otavio Salvador --- conf/layer.conf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/conf/layer.conf b/conf/layer.conf index bea5a65..bbdce14 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -12,3 +12,12 @@ BBFILE_PRIORITY_raspberrypi = "9" # Additional license directories. LICENSE_PATH += "${LAYERDIR}/files/custom-licenses" +# The dynamic-layers directory hosts the extensions and layer specific +# modifications. +# +# The .bbappend and .bb files are included if the respective layer +# collection is available. +BBFILES += "${@' '.join('${LAYERDIR}/dynamic-layers/%s/recipes*/*/*.bbappend' % layer \ + for layer in BBFILE_COLLECTIONS.split())}" +BBFILES += "${@' '.join('${LAYERDIR}/dynamic-layers/%s/recipes*/*/*.bb' % layer \ + for layer in BBFILE_COLLECTIONS.split())}"