icecc: Disable icecc for allarch recipes

* 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.

(From OE-Core rev: a956f9d91c8128e43b55c6bc01337472e47fe43a)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Martin Jansa 2013-11-27 02:53:39 +01:00 committed by Richard Purdie
parent 1897cce1fc
commit 572a8eb874
1 changed files with 8 additions and 0 deletions

View File

@ -90,6 +90,10 @@ def create_path(compilers, bb, d):
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" ]
@ -124,6 +128,10 @@ def use_icc(bb,d):
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);