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-26 14:43:33 +0100 |
commit | cf332fd9bf685f6d42b11c1f0c37b934c7f5bcbe (patch) | |
tree | 6a90867d192223368c5f5d3565bc19304ab42daa /meta/classes/nativesdk.bbclass | |
parent | 5a1f172d35be610688842a8a9a84f24edb9aeb51 (diff) | |
download | openembedded-core-cf332fd9bf685f6d42b11c1f0c37b934c7f5bcbe.tar.gz openembedded-core-cf332fd9bf685f6d42b11c1f0c37b934c7f5bcbe.tar.bz2 openembedded-core-cf332fd9bf685f6d42b11c1f0c37b934c7f5bcbe.zip |
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
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/nativesdk.bbclass')
-rw-r--r-- | meta/classes/nativesdk.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass index 9e20834575..a58fce2040 100644 --- a/meta/classes/nativesdk.bbclass +++ b/meta/classes/nativesdk.bbclass @@ -8,6 +8,7 @@ STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${SDK_ARCH}${S # we dont want libc-uclibc or libc-glibc to kick in for nativesdk recipes LIBCOVERRIDE = "" +CLASSOVERRIDE = "class-nativesdk" # # Update PACKAGE_ARCH and PACKAGE_ARCHS |