From: Alex Franco Date: Thu, 24 Mar 2016 01:39:09 +0000 (-0600) Subject: icecc.bbclass: add icc_is_allarch inherit check X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f1702cc1f54098877742a8a265adcb73fccb730;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.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] (From OE-Core rev: 0f9a3b445186b58d2c1f731da94c6b3a05494369) Signed-off-by: Alex Franco Signed-off-by: Richard Purdie --- diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass index 61b8bb1a11f..75d0e5d8019 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 \