summaryrefslogtreecommitdiffstats
path: root/meta/conf
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-10 18:58:28 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-30 11:37:22 +0100
commit71b78f04832985250115b5e72321fa82309090f6 (patch)
tree88d314c0f19977b73c19bbae8b333528f5100459 /meta/conf
parentc47a869308cb0cccde0b1aee9a001352c99a8395 (diff)
downloadpoky-71b78f04832985250115b5e72321fa82309090f6.tar.gz
classes: Add recipe class to overrides
We have currently no override to detect a recipe being build cross, crosssdk or for target at times we can use virtclass-native and virtclass-nativesdk to override stuff in recipes but we dont have way to modify a variables based on recipe type always. This patch adds in such an override and in particular makes a target override class available. With this change now we can say: EXTRA_OECONF_class-target = "...." EXTRA_OECONF_class-native = "..." EXTRA_OECONF_class-nativesdk = "..." EXTRA_OECONF_class-crosssdk= "..." Based of an original patch by Khem Raj (From OE-Core rev: cf332fd9bf685f6d42b11c1f0c37b934c7f5bcbe) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r--meta/conf/bitbake.conf3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 91fe070718..9f4e4d4449 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -637,7 +637,8 @@ AUTO_LIBNAME_PKGS = "${PACKAGES}"
637# 637#
638# This works for functions as well, they are really just environment variables. 638# This works for functions as well, they are really just environment variables.
639# Default OVERRIDES to make compilation fail fast in case of build system misconfiguration. 639# Default OVERRIDES to make compilation fail fast in case of build system misconfiguration.
640OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:build-${BUILD_OS}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:forcevariable" 640OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:build-${BUILD_OS}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}:forcevariable"
641CLASSOVERRIDE ?= "class-target"
641DISTROOVERRIDES ?= "${@d.getVar('DISTRO', True) or ''}" 642DISTROOVERRIDES ?= "${@d.getVar('DISTRO', True) or ''}"
642MACHINEOVERRIDES ?= "${MACHINE}" 643MACHINEOVERRIDES ?= "${MACHINE}"
643MACHINEOVERRIDES[vardepsexclude] = "MACHINE" 644MACHINEOVERRIDES[vardepsexclude] = "MACHINE"