diff options
author | Lianhao Lu <lianhao.lu@intel.com> | 2012-03-31 14:49:21 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-31 17:59:08 +0100 |
commit | 404cced0c2226a7e4a49428ef3f8d16f1e4895cf (patch) | |
tree | 9e73a4f55ad0341ba5bc0b77be1a7cae42175c9e /meta/classes | |
parent | d55db7b0582d17bb998a9254185702b8807bedc6 (diff) | |
download | poky-404cced0c2226a7e4a49428ef3f8d16f1e4895cf.tar.gz |
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].
(From OE-Core rev: 951a68731f655f597c5dfa541fc913d399eabfb9)
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/nativesdk.bbclass | 8 |
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 = "" | |||
13 | # Update PACKAGE_ARCH and PACKAGE_ARCHS | 13 | # Update PACKAGE_ARCH and PACKAGE_ARCHS |
14 | # | 14 | # |
15 | PACKAGE_ARCH = "${SDK_ARCH}-nativesdk" | 15 | PACKAGE_ARCH = "${SDK_ARCH}-nativesdk" |
16 | python () { | 16 | PACKAGE_ARCHS = "${SDK_PACKAGE_ARCHS}" |
17 | archs = d.getVar('PACKAGE_ARCHS', True).split() | ||
18 | sdkarchs = [] | ||
19 | for arch in archs: | ||
20 | sdkarchs.append(arch + '-nativesdk') | ||
21 | d.setVar('PACKAGE_ARCHS', " ".join(sdkarchs)) | ||
22 | } | ||
23 | 17 | ||
24 | STAGING_DIR_HOST = "${STAGING_DIR}/${MULTIMACH_HOST_SYS}" | 18 | STAGING_DIR_HOST = "${STAGING_DIR}/${MULTIMACH_HOST_SYS}" |
25 | STAGING_DIR_TARGET = "${STAGING_DIR}/${MULTIMACH_TARGET_SYS}" | 19 | STAGING_DIR_TARGET = "${STAGING_DIR}/${MULTIMACH_TARGET_SYS}" |