From 6907da7eb44dca812dbb9e214357ee96e9ff738a Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 25 Aug 2014 12:01:17 -0700 Subject: native/nativesdk: Clear MACHINEOVERRIDES In cases where we override variables e.g PACKAGE_ARCH conditionally and use a MACHINEOVERRIDE to qualify the override like PACKAGE_ARCH_ = "some target PACKAGE_ARCH" This would also be effective if this recipe is BBEXTENDED to native or nativesdk which is undesired This particular issue will cause wrong sysroot to be used for nativesdk case since PACKAGE_ARCH would have been modified and eventually changing value of STAGING_DIR_TARGET which we use as --sysroot option to cross and cross-canadian built SDK gcc Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- meta/classes/native.bbclass | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/classes/native.bbclass') diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index 9dec318aa8..adebb97651 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass @@ -109,6 +109,7 @@ PKG_CONFIG_SYSROOT_DIR = "" # we dont want libc-uclibc or libc-glibc to kick in for native recipes LIBCOVERRIDE = "" CLASSOVERRIDE = "class-native" +MACHINEOVERRIDES = "" PATH_prepend = "${COREBASE}/scripts/native-intercept:" -- cgit 1.2.3-korg