[oe-commits] [openembedded-core] 08/28: icecc.bbclass: add icc_is_allarch inherit check

git at git.openembedded.org git at git.openembedded.org
Sat Mar 26 08:04:17 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit dbfca5461a5698b861d8a8a14df5b02673ba0c95
Author: Alex Franco <alejandro.franco at linux.intel.com>
AuthorDate: Wed Mar 23 19:39:09 2016 -0600

    icecc.bbclass: add icc_is_allarch inherit check
    
    Additional check for inheritance of allarch.bbclass, for when
    checking that PACKAGE_ARCH == "all" is not enough to be sure
    a recipe is "allarch"; e.g. nativesdk-buildtools type recipes
    
    [YOCTO #8934]
    
    Signed-off-by: Alex Franco <alejandro.franco at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/icecc.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass
index 61b8bb1..75d0e5d 100644
--- a/meta/classes/icecc.bbclass
+++ b/meta/classes/icecc.bbclass
@@ -138,7 +138,7 @@ def use_icc(bb,d):
     return "yes"
 
 def icc_is_allarch(bb, d):
-    return d.getVar("PACKAGE_ARCH", False) == "all"
+    return d.getVar("PACKAGE_ARCH", False) == "all" or bb.data.inherits_class('allarch', d)
 
 def icc_is_kernel(bb, d):
     return \

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list