From: Alex Franco Date: Thu, 24 Mar 2016 01:39:09 +0000 (-0600) Subject: icecc.bbclass: add icc_is_allarch inherit check X-Git-Tag: 2016-4~279 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=0f9a3b445186b58d2c1f731da94c6b3a05494369;p=openembedded-core.git 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 Signed-off-by: Richard Purdie --- diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass index 61b8bb1a11..75d0e5d801 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 \