Patchwork allarch: Disable icecc for allarch recipes

login
register
mail settings
Submitter Martin Jansa
Date Nov. 27, 2013, 1:52 a.m.
Message ID <1385517143-2228-1-git-send-email-Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/62447/
State New
Headers show

Comments

Martin Jansa - Nov. 27, 2013, 1:52 a.m.
* 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>
---
 meta/classes/icecc.bbclass | 8 ++++++++
 1 file changed, 8 insertions(+)

Patch

diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass
index 49dbd77..ef8761a 100644
--- a/meta/classes/icecc.bbclass
+++ b/meta/classes/icecc.bbclass
@@ -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);