From: Richard Purdie Date: Mon, 19 Jun 2023 13:40:33 +0000 (+0100) Subject: bitbake.conf: Add layer- override support X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~572 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=144db9241b141c3380a2b292414d04bfc39a2e20;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake.conf: Add layer- override support Add a new layer specific override based upon the FILE_LAYERNAME support now present in bitbake. In particular this allows layer specific QA warnings and errors to be made more easily. Signed-off-by: Richard Purdie --- diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 702881144ef..9625a6fef4c 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -806,7 +806,8 @@ DISTRO_NAME ??= "OpenEmbedded" # And finally ':forcevariable' overrides any standard variable, with the highest priority. # This works for functions as well, they are really just variables. # -OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}${LIBCOVERRIDE}:forcevariable" +OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:pn-${PN}:layer-${FILE_LAYERNAME}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}${LIBCOVERRIDE}:forcevariable" +FILE_LAYERNAME ??= "config" LIBCOVERRIDE ?= "" CLASSOVERRIDE ?= "class-target" DISTROOVERRIDES ?= "${@d.getVar('DISTRO') or ''}"