Comments
Patch
@@ -6,4 +6,4 @@ BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb"
BBFILE_COLLECTIONS += "hob"
BBFILE_PATTERN_hob := "^${LAYERDIR}/"
-BBFILE_PRIORITY_hob = "1"
+BBFILE_PRIORITY_hob ?= "1"
@@ -6,5 +6,5 @@ BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb"
BBFILE_COLLECTIONS += "skeleton"
BBFILE_PATTERN_skeleton := "^${LAYERDIR}/"
-BBFILE_PRIORITY_skeleton = "1"
+BBFILE_PRIORITY_skeleton ?= "1"
@@ -5,7 +5,7 @@ BBFILES += "${LAYERDIR}/recipes-*/*/*.bb"
BBFILE_COLLECTIONS += "core"
BBFILE_PATTERN_core := "^${LAYERDIR}/"
-BBFILE_PRIORITY_core = "5"
+BBFILE_PRIORITY_core ?= "5"
# This should only be incremented on significant changes that will
# cause compatibility issues with other layers
Use weak assignment for BBFILE_PRIORITY so that it can be overriden locally in bblayers.conf. Signed-off-by: Johan Hovold <johan.hovold@lundinova.se> --- Hi, This would allow the layer priorities to be altered locally while still letting upstream define default priorities for the layers. In my setup I try to use oe-core over meta-oe whenever possible, but the default priorities are inversed. Simply pinning the version is not an option when the same version exists in more than one layer (e.g. udev-182). Would this be an acceptable way of adding local layer-priority control? Is there any other way? Thanks, Johan meta-hob/conf/layer.conf | 2 +- meta-skeleton/conf/layer.conf | 2 +- meta/conf/layer.conf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)