]> code.ossystems Code Review - openembedded-core.git/commitdiff
crosssdk.bbclass: Set TUNE_PKGARCH to SDK_PKGARCH.
authorLianhao Lu <lianhao.lu@intel.com>
Sat, 31 Mar 2012 06:49:22 +0000 (14:49 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 31 Mar 2012 15:46:24 +0000 (16:46 +0100)
The TUNE_PKGARCH of crosssdk should be set to SDK_ARCH, not the one
from target machine's configuration.

Fixed bug [YOCTO #2206]

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/crosssdk.bbclass

index 83753b4f797b5532e6a22c48c3afad7f523111af..67df236b2c3e490d87a56a5aed2c93b6ab6b3649 100644 (file)
@@ -1,6 +1,11 @@
 inherit cross
 
 PACKAGE_ARCH = "${SDK_ARCH}"
+python () {
+       # set TUNE_PKGARCH to SDK_ARCH
+       d.setVar('TUNE_PKGARCH', d.getVar('SDK_ARCH', True))
+}
+
 STAGING_DIR_TARGET = "${STAGING_DIR}/${SDK_ARCH}-nativesdk${SDK_VENDOR}-${SDK_OS}"
 STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}"