diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2013-11-27 02:53:39 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-27 12:03:04 +0000 |
commit | a956f9d91c8128e43b55c6bc01337472e47fe43a (patch) | |
tree | 9e23519ca7da45227d9b06a644d8c6545bf711c0 /meta/classes/icecc.bbclass | |
parent | da9c74917804a823bcf122b778aef273c3b64ede (diff) | |
download | openembedded-core-contrib-a956f9d91c8128e43b55c6bc01337472e47fe43a.tar.gz |
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.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/icecc.bbclass')
-rw-r--r-- | meta/classes/icecc.bbclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass index 49dbd770190..ef8761a93b9 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); |