summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2004-10-13 19:29:07 +0000
committerPhil Blundell <philb@gnu.org>2004-10-13 19:29:07 +0000
commitbb2aac48e2eb42c1fcb36db80eaf08e547534e48 (patch)
treeade10d68b8d88f34ba7920e7611fc531bbb247b1
parent26778d806e610a3c729bf6305292cada442d7a61 (diff)
downloadbitbake-contrib-bb2aac48e2eb42c1fcb36db80eaf08e547534e48.tar.gz
add current task to OVERRIDES during execution to facilitate "EXTRA_OEMAKE_prepend_do-compile = '-j3'"
-rw-r--r--bin/oe/build.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/oe/build.py b/bin/oe/build.py
index d1c2767d1..953951f9a 100644
--- a/bin/oe/build.py
+++ b/bin/oe/build.py
@@ -282,7 +282,11 @@ def exec_task(task, d):
try:
debug(1, "Executing task %s" % item)
event.fire(TaskStarted(item, d))
- exec_func(item, d)
+ from copy import deepcopy
+ localdata = deepcopy(d)
+ oe.data.setVar('OVERRIDES', "%s:%s" % (item.replace('_', '-'), oe.data.getVar('OVERRIDES', localdata)), localdata)
+ oe.data.update_data(localdata)
+ exec_func(item, localdata)
event.fire(TaskSucceeded(item, d))
task_cache.append(item)
except FuncFailed, reason: