summaryrefslogtreecommitdiff
path: root/meta/classes/crosssdk.bbclass
diff options
context:
space:
mode:
authorLianhao Lu <lianhao.lu@intel.com>2012-03-31 14:49:22 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-31 16:46:24 +0100
commite809b6657c53616a82e73d2f20ec23bc50ccebc9 (patch)
tree96ce93ba707aa051935c0271faa6d52b21729456 /meta/classes/crosssdk.bbclass
parent951a68731f655f597c5dfa541fc913d399eabfb9 (diff)
downloadopenembedded-core-e809b6657c53616a82e73d2f20ec23bc50ccebc9.tar.gz
openembedded-core-e809b6657c53616a82e73d2f20ec23bc50ccebc9.tar.bz2
openembedded-core-e809b6657c53616a82e73d2f20ec23bc50ccebc9.tar.xz
openembedded-core-e809b6657c53616a82e73d2f20ec23bc50ccebc9.zip
crosssdk.bbclass: Set TUNE_PKGARCH to SDK_PKGARCH.
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>
Diffstat (limited to 'meta/classes/crosssdk.bbclass')
-rw-r--r--meta/classes/crosssdk.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/crosssdk.bbclass b/meta/classes/crosssdk.bbclass
index 83753b4f7..67df236b2 100644
--- a/meta/classes/crosssdk.bbclass
+++ b/meta/classes/crosssdk.bbclass
@@ -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}"