]> code.ossystems Code Review - openembedded-core.git/commit
classes: Add recipe class to overrides
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 11 Feb 2012 02:58:28 +0000 (18:58 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Apr 2012 13:43:33 +0000 (14:43 +0100)
commitcf332fd9bf685f6d42b11c1f0c37b934c7f5bcbe
tree6a90867d192223368c5f5d3565bc19304ab42daa
parent5a1f172d35be610688842a8a9a84f24edb9aeb51
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>
meta/classes/base.bbclass
meta/classes/cross-canadian.bbclass
meta/classes/cross.bbclass
meta/classes/crosssdk.bbclass
meta/classes/native.bbclass
meta/classes/nativesdk.bbclass
meta/conf/bitbake.conf