Patchwork sstate: Set SSTAGE_PKGARCH for allarch packages to allow reuse

login
register
mail settings
Submitter Richard Purdie
Date July 20, 2012, 3:52 p.m.
Message ID <1342799575.21788.33.camel@ted>
Download mbox | patch
Permalink /patch/32733/
State New
Headers show

Comments

Richard Purdie - July 20, 2012, 3:52 p.m.
allarch sstate packages could be marked as machine or package_arch specific. This
change ensures they are not.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index d572f0e..ce2a7e2 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -32,6 +32,8 @@  python () {
         d.setVar('SSTATE_PKGARCH', d.expand("${SDK_ARCH}"))
     elif bb.data.inherits_class('cross-canadian', d):
         d.setVar('SSTATE_PKGARCH', d.expand("${SDK_ARCH}_${PACKAGE_ARCH}"))
+    elif bb.data.inherits_class('allarch', d):
+        d.setVar('SSTATE_PKGARCH', "allarch")
     else:
         d.setVar('SSTATE_MANMACH', d.expand("${MACHINE}"))