If PACKAGE_ARCH contains variables (with ${) then expand it
this might be necessary if the value of PACKAGE_ARCH, which
is checked against in this test, should for any reason not
contain a value, but one or more variables[YOCTO #8934] Signed-off-by: Alex Franco <[email protected]> --- meta/classes/icecc.bbclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass index 75d0e5d..6632f5b 100644 --- a/meta/classes/icecc.bbclass +++ b/meta/classes/icecc.bbclass @@ -138,7 +138,10 @@ def use_icc(bb,d): return "yes" def icc_is_allarch(bb, d): - return d.getVar("PACKAGE_ARCH", False) == "all" or bb.data.inherits_class('allarch', d) + package_arch = d.getVar("PACKAGE_ARCH", False) + if '${' in package_arch: + package_arch = d.expand(package_arch) + return package_arch == "all" or bb.data.inherits_class('allarch', d) def icc_is_kernel(bb, d): return \ -- 2.7.3 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
