summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2014-02-17 14:07:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-17 15:34:45 +0000
commit0008cd6444dc3c13d5bab4651dbd237f9ed3abfc (patch)
tree793f1723e19f509c67a2593008b8bd572f1f2202
parenta56bd812a7204b74abfe413234f16c4bf9b86bfb (diff)
downloadpoky-0008cd6444dc3c13d5bab4651dbd237f9ed3abfc.tar.gz
poky-0008cd6444dc3c13d5bab4651dbd237f9ed3abfc.tar.bz2
poky-0008cd6444dc3c13d5bab4651dbd237f9ed3abfc.zip
bitbake: build: fix handling of task override for tasks with underscores in their names
Tasks whose names contain underscores (such as do_populate_sdk in OE) when converted to a task override do not function properly. If we replace underscores with hyphens we can still have a working override for these tasks. (Bitbake rev: cf90bd6b2a0ab7dce922bffb500d6a2ff2ff10e2) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index 692b91ec1b..50a28dce7b 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -330,7 +330,7 @@ def _task_data(fn, task, d):
localdata.setVar('BB_FILENAME', fn)
localdata.setVar('BB_CURRENTTASK', task[3:])
localdata.setVar('OVERRIDES', 'task-%s:%s' %
- (task[3:], d.getVar('OVERRIDES', False)))
+ (task[3:].replace('_', '-'), d.getVar('OVERRIDES', False)))
localdata.finalize()
bb.data.expandKeys(localdata)
return localdata