diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-19 14:40:33 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-20 23:24:26 +0100 |
| commit | 42921e63a4969bde69d608afd497071341423d13 (patch) | |
| tree | b3e1127079308d7857fe749fba444823c583919c | |
| parent | 55b0208c333e01778b25a1bdcb642ea6608e8f14 (diff) | |
| download | poky-42921e63a4969bde69d608afd497071341423d13.tar.gz | |
bitbake.conf: Add layer-<layername> 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.
(From OE-Core rev: 144db9241b141c3380a2b292414d04bfc39a2e20)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/conf/bitbake.conf | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 702881144e..9625a6fef4 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
| @@ -806,7 +806,8 @@ DISTRO_NAME ??= "OpenEmbedded" | |||
| 806 | # And finally '<foo>:forcevariable' overrides any standard variable, with the highest priority. | 806 | # And finally '<foo>:forcevariable' overrides any standard variable, with the highest priority. |
| 807 | # This works for functions as well, they are really just variables. | 807 | # This works for functions as well, they are really just variables. |
| 808 | # | 808 | # |
| 809 | OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}${LIBCOVERRIDE}:forcevariable" | 809 | OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:pn-${PN}:layer-${FILE_LAYERNAME}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}${LIBCOVERRIDE}:forcevariable" |
| 810 | FILE_LAYERNAME ??= "config" | ||
| 810 | LIBCOVERRIDE ?= "" | 811 | LIBCOVERRIDE ?= "" |
| 811 | CLASSOVERRIDE ?= "class-target" | 812 | CLASSOVERRIDE ?= "class-target" |
| 812 | DISTROOVERRIDES ?= "${@d.getVar('DISTRO') or ''}" | 813 | DISTROOVERRIDES ?= "${@d.getVar('DISTRO') or ''}" |
