Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] bitbake.conf: Add layer-<layername> override support
@ 2023-06-19 14:06 Richard Purdie
  2023-06-19 14:06 ` [PATCH 2/2] insane: Improve patch-status layer filtering Richard Purdie
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Purdie @ 2023-06-19 14:06 UTC (permalink / raw)
  To: openembedded-core

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 <richard.purdie@linuxfoundation.org>
---
 meta/conf/bitbake.conf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 '<foo>: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 ''}"
-- 
2.39.2



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-06-21  9:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-19 14:06 [PATCH 1/2] bitbake.conf: Add layer-<layername> override support Richard Purdie
2023-06-19 14:06 ` [PATCH 2/2] insane: Improve patch-status layer filtering Richard Purdie
2023-06-19 16:16   ` [OE-core] " Ross Burton
2023-06-20 20:16   ` Luca Ceresoli
2023-06-20 22:27     ` Richard Purdie
2023-06-21  8:58       ` Martin Jansa
2023-06-21  9:06         ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox