aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorRoman Khimov <khimov@altell.ru>2009-07-15 02:52:41 +0000
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-01-24 04:03:45 +0100
commit1b6cc35e3acf0f65ec4ab761949dcec6d86f43fc (patch)
tree556d3febaed2f7465731d6912e2342dedb326da8 /classes
parentfded57212337dbff5c9c92944457d7e41adbf7ff (diff)
downloadopenembedded-1b6cc35e3acf0f65ec4ab761949dcec6d86f43fc.tar.gz
icecc: introduce ICECC_FALLBACK_PARALLEL
icecc-blacklisted packages currently built not only without icecc environment set but also without any parallel options enabled. The original intention was not to kill the build machine, I guess, since having a good icecc cluster it's easy to set '-j16' or '-j32' or whatever else which could do so. However as the toolchain packages are blacklisted for icecc they're becoming a bottleneck in the build process, while they can be built with local-machine parallelism. So, in order to solve it, introducing ICECC_FALLBACK_PARALLEL option. It's simply used as PARALLEL_MAKE for icecc-blacklisted packages.
Diffstat (limited to 'classes')
-rw-r--r--classes/icecc.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/icecc.bbclass b/classes/icecc.bbclass
index 9e11a3ce49..8e539db0b8 100644
--- a/classes/icecc.bbclass
+++ b/classes/icecc.bbclass
@@ -257,7 +257,8 @@ def icc_path(bb,d):
for black in package_blacklist:
if black in package_tmp:
bb.note(package_tmp, ' found in blacklist, disable icecc')
- bb.data.setVar("PARALLEL_MAKE" , "", d)
+ fallback_parallel = bb.data.getVar('ICECC_FALLBACK_PARALLEL', d) or ""
+ bb.data.setVar("PARALLEL_MAKE", fallback_parallel, d)
return ""
prefix = bb.data.expand('${HOST_PREFIX}', d)