]> code.ossystems Code Review - openembedded-core.git/commitdiff
icecc: Disable icecc for allarch recipes
authorMartin Jansa <martin.jansa@gmail.com>
Wed, 27 Nov 2013 01:53:39 +0000 (02:53 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 27 Nov 2013 12:03:04 +0000 (12:03 +0000)
* 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>
meta/classes/icecc.bbclass

index 49dbd7701908e9e9e09c8b00a1aab8bdcf870d10..ef8761a93b9184b62ec74f3ea12c3787b935b634 100644 (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);