diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-10 18:58:28 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-30 11:37:22 +0100 |
commit | 71b78f04832985250115b5e72321fa82309090f6 (patch) | |
tree | 88d314c0f19977b73c19bbae8b333528f5100459 /meta/classes/native.bbclass | |
parent | c47a869308cb0cccde0b1aee9a001352c99a8395 (diff) | |
download | poky-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/classes/native.bbclass')
-rw-r--r-- | meta/classes/native.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index ffab971cbb..bca48d4637 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass | |||
@@ -97,6 +97,7 @@ PKG_CONFIG_SYSROOT_DIR = "" | |||
97 | 97 | ||
98 | # we dont want libc-uclibc or libc-glibc to kick in for native recipes | 98 | # we dont want libc-uclibc or libc-glibc to kick in for native recipes |
99 | LIBCOVERRIDE = "" | 99 | LIBCOVERRIDE = "" |
100 | CLASSOVERRIDE = "class-native" | ||
100 | 101 | ||
101 | PATH =. "${COREBASE}/scripts/native-intercept:" | 102 | PATH =. "${COREBASE}/scripts/native-intercept:" |
102 | 103 | ||