From: Paul Eggleton Date: Mon, 17 Feb 2014 14:07:41 +0000 (+0000) Subject: build: fix handling of task override for tasks with underscores in their names X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf90bd6b2a0ab7dce922bffb500d6a2ff2ff10e2;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- diff --git a/lib/bb/build.py b/lib/bb/build.py index 692b91ec1b6..50a28dce7bd 100644 --- a/lib/bb/build.py +++ b/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