]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstate: fix architecture of sstate archives
authorJoshua Lock <josh@linux.intel.com>
Wed, 25 Aug 2010 14:00:02 +0000 (15:00 +0100)
committerJoshua Lock <josh@linux.intel.com>
Wed, 25 Aug 2010 17:01:23 +0000 (18:01 +0100)
Using TARGET_ARCH as the pacakge architecture for sstate archives lead to some
issues when using two machines with different BASE_PACKAGE_ARCH's but the same
TARGET_ARCH such as netbook and qemux86 machines.

Probable fix for [BUGID #223]

Signed-off-by: Joshua Lock <josh@linux.intel.com>
meta/classes/sstate.bbclass

index 6476257fc823574956a5248b9fe421c7b67a24be..60517348969475c264f8845f82da5ecade5fdd0b 100644 (file)
@@ -2,7 +2,7 @@ PSTAGE2_MANIFESTS = "${TMPDIR}/pstagelogs"
 PSTAGE2_MANFILEPREFIX = "${PSTAGE2_MANIFESTS}/manifest-${PSTAGE2_PKGARCH}-${PN}"
 
 
-PSTAGE2_PKGARCH    = "${TARGET_ARCH}"
+PSTAGE2_PKGARCH    = "${BASE_PACKAGE_ARCH}"
 PSTAGE2_PKGVERSION = "${PV}-${PR}"
 PSTAGE2_PKGPN      = "${@bb.data.expand('staging-${PN}-${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}', d).replace('_', '-')}"
 
@@ -17,11 +17,11 @@ python () {
     if bb.data.inherits_class('native', d):
         bb.data.setVar('PSTAGE2_PKGARCH', bb.data.getVar('BUILD_ARCH', d), d)
     elif bb.data.inherits_class('cross', d) or bb.data.inherits_class('crosssdk', d):
-        bb.data.setVar('PSTAGE2_PKGARCH', bb.data.expand("${BUILD_ARCH}_${TARGET_ARCH}", d), d)
+        bb.data.setVar('PSTAGE2_PKGARCH', bb.data.expand("${BUILD_ARCH}_${BASE_PACKAGE_ARCH}", d), d)
     elif bb.data.inherits_class('nativesdk', d):
         bb.data.setVar('PSTAGE2_PKGARCH', bb.data.expand("${SDK_ARCH}", d), d)
     elif bb.data.inherits_class('cross-canadian', d):
-        bb.data.setVar('PSTAGE2_PKGARCH', bb.data.expand("${SDK_ARCH}_${TARGET_ARCH}", d), d)
+        bb.data.setVar('PSTAGE2_PKGARCH', bb.data.expand("${SDK_ARCH}_${BASE_PACKAGE_ARCH}", d), d)
 
     # These classes encode staging paths into their scripts data so can only be
     # reused if we manipulate the paths