* Fix icecc.bbclass failing with:
ERROR: recipe-name NULL prefix
when it's used with empty TARGET_PREFIX.
* Allarch recipes cannot use compiler at all (even the local one)
so there is no point of using icecc for them.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
return staging
def use_icc(bb,d):
+ # allarch recipes don't use compiler
+ if icc_is_allarch(bb, d):
+ return "no"
+
package_tmp = d.expand('${PN}')
system_class_blacklist = [ "none" ]
return "yes"
+def icc_is_allarch(bb, d):
+ return \
+ bb.data.inherits_class("allarch", d);
+
def icc_is_kernel(bb, d):
return \
bb.data.inherits_class("kernel", d);