]> code.ossystems Code Review - openembedded-core.git/commitdiff
icecc.bbclass: add icc_is_allarch inherit check
authorAlex Franco <alejandro.franco@linux.intel.com>
Thu, 24 Mar 2016 01:39:09 +0000 (19:39 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 26 Mar 2016 22:49:36 +0000 (22:49 +0000)
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@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/icecc.bbclass

index 61b8bb1a11f05c7bed5c25614b0c7c932dbfeb81..75d0e5d8019786971b199f924e40c48da6e2423f 100644 (file)
@@ -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 \