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] (From OE-Core rev: 0f9a3b445186b58d2c1f731da94c6b3a05494369) Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
39170fe6f1
commit
3f1702cc1f
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue