Patchwork [bitbake-devel,2/2] build: fix handling of task override for tasks with underscores in their names

mail settings
Submitter Paul Eggleton
Date Feb. 17, 2014, 2:07 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/66839/
State New
Headers show


Paul Eggleton - Feb. 17, 2014, 2:07 p.m.
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.

Signed-off-by: Paul Eggleton <>
 lib/bb/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/lib/bb/ b/lib/bb/
index 692b91e..50a28dc 100644
--- a/lib/bb/
+++ b/lib/bb/
@@ -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)))
     return localdata