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-29 09:52:57 +0000 |
| commit | 572a8eb87489d549fff33d85a3760949730978eb (patch) | |
| tree | 9c3d5f56d045ad038b9d5e116c0d64124655008a | |
| parent | 1897cce1fc1ebd5a79b69f86e34f8c222ccd2751 (diff) | |
| download | poky-572a8eb87489d549fff33d85a3760949730978eb.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.
(From OE-Core rev: a956f9d91c8128e43b55c6bc01337472e47fe43a)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -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 49dbd77019..ef8761a93b 100644 --- a/meta/classes/icecc.bbclass +++ b/meta/classes/icecc.bbclass | |||
| @@ -90,6 +90,10 @@ def create_path(compilers, bb, d): | |||
| 90 | return staging | 90 | return staging |
| 91 | 91 | ||
| 92 | def use_icc(bb,d): | 92 | def use_icc(bb,d): |
| 93 | # allarch recipes don't use compiler | ||
| 94 | if icc_is_allarch(bb, d): | ||
| 95 | return "no" | ||
| 96 | |||
| 93 | package_tmp = d.expand('${PN}') | 97 | package_tmp = d.expand('${PN}') |
| 94 | 98 | ||
| 95 | system_class_blacklist = [ "none" ] | 99 | system_class_blacklist = [ "none" ] |
| @@ -124,6 +128,10 @@ def use_icc(bb,d): | |||
| 124 | 128 | ||
| 125 | return "yes" | 129 | return "yes" |
| 126 | 130 | ||
| 131 | def icc_is_allarch(bb, d): | ||
| 132 | return \ | ||
| 133 | bb.data.inherits_class("allarch", d); | ||
| 134 | |||
| 127 | def icc_is_kernel(bb, d): | 135 | def icc_is_kernel(bb, d): |
| 128 | return \ | 136 | return \ |
| 129 | bb.data.inherits_class("kernel", d); | 137 | bb.data.inherits_class("kernel", d); |
