]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstate.bbclass: fix multimachine builds when PACKAGE_ARCH = MACHINE_ARCH
authorKoen Kooi <koen@dominion.thruhere.net>
Mon, 3 Jan 2011 18:36:07 +0000 (19:36 +0100)
committerSaul Wold <sgw@linux.intel.com>
Tue, 4 Jan 2011 17:46:26 +0000 (09:46 -0800)
previously you could only build one set of packages for multiple machines:

MACHINE=foo bitbake task-base
MACHINE=bar bitbake task-base

would only create task-base packages for foo, but not for both foo and bar.
Doing MACHINE=bar bitbake task-base -c cleanall would remove the packages for foo.

The solution is to use MULTIMACH_ARCH as suggested by Richard Purdie.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/sstate.bbclass

index 0ba130c8860f07f260c250e33a2bee0d808ac755..b6e6c92003eb454263bb21772559f3c77ad9b120 100644 (file)
@@ -5,7 +5,7 @@ SSTATE_MANFILEBASE = "${SSTATE_MANIFESTS}/manifest-${SSTATE_PKGARCH}-"
 SSTATE_MANFILEPREFIX = "${SSTATE_MANFILEBASE}${PN}"
 
 
-SSTATE_PKGARCH    = "${BASE_PACKAGE_ARCH}"
+SSTATE_PKGARCH    = "${MULTIMACH_ARCH}"
 SSTATE_PKGSPEC    = "sstate-${PN}-${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}-${PV}-${PR}-${SSTATE_PKGARCH}-${SSTATE_VERSION}-"
 SSTATE_PKGNAME    = "${SSTATE_PKGSPEC}${BB_TASKHASH}"
 SSTATE_PKG        = "${SSTATE_DIR}/${SSTATE_PKGNAME}"