summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLianhao Lu <lianhao.lu@intel.com>2012-03-31 14:49:21 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-31 16:46:13 +0100
commit951a68731f655f597c5dfa541fc913d399eabfb9 (patch)
tree647275b635f4b6c0b9528369d43167217f128a43
parent627998726ca3ee2ed2510c0f666747f688d06c56 (diff)
downloadopenembedded-core-951a68731f655f597c5dfa541fc913d399eabfb9.tar.gz
openembedded-core-951a68731f655f597c5dfa541fc913d399eabfb9.tar.bz2
openembedded-core-951a68731f655f597c5dfa541fc913d399eabfb9.zip
nativesdk.bbclass: Set PACKAGE_ARCHS to SDK_PACKAGE_ARCHS.
This patch fixed the issue of reading incorrect pkgdata files. Previous appending '-nativesdk' suffix to PACKAGE_ARCHS would result the i686-nativesdk recipes reading in x86_64-nativesdk pkgdata files if the MACHINE is set to qemux86-64. Fixed bug [YOCTO #2203]. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/nativesdk.bbclass8
1 files changed, 1 insertions, 7 deletions
diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass
index 97c460c289..9e20834575 100644
--- a/meta/classes/nativesdk.bbclass
+++ b/meta/classes/nativesdk.bbclass
@@ -13,13 +13,7 @@ LIBCOVERRIDE = ""
# Update PACKAGE_ARCH and PACKAGE_ARCHS
#
PACKAGE_ARCH = "${SDK_ARCH}-nativesdk"
-python () {
- archs = d.getVar('PACKAGE_ARCHS', True).split()
- sdkarchs = []
- for arch in archs:
- sdkarchs.append(arch + '-nativesdk')
- d.setVar('PACKAGE_ARCHS', " ".join(sdkarchs))
-}
+PACKAGE_ARCHS = "${SDK_PACKAGE_ARCHS}"
STAGING_DIR_HOST = "${STAGING_DIR}/${MULTIMACH_HOST_SYS}"
STAGING_DIR_TARGET = "${STAGING_DIR}/${MULTIMACH_TARGET_SYS}"