bitbake/build.py: Set BB_FILENAME to represent the .bb file being built (including any virtual prefix)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
parent
d94f0f74c1
commit
89c7260931
|
@ -86,6 +86,6 @@ if taskname.endswith("_setscene"):
|
|||
|
||||
ret = 0
|
||||
if sys.argv[3] != "True":
|
||||
ret = bb.build.exec_task(taskname, the_data)
|
||||
ret = bb.build.exec_task(fn, taskname, the_data)
|
||||
sys.exit(ret)
|
||||
|
||||
|
|
|
@ -268,7 +268,7 @@ def exec_func_shell(func, d, runfile, logfile, flags):
|
|||
raise FuncFailed("function %s failed" % func, logfile)
|
||||
|
||||
|
||||
def exec_task(task, d):
|
||||
def exec_task(fn, task, d):
|
||||
"""Execute an BB 'task'
|
||||
|
||||
The primary difference between executing a task versus executing
|
||||
|
@ -292,6 +292,7 @@ def exec_task(task, d):
|
|||
data.setVar('OVERRIDES', 'task-%s:%s' % (task[3:], old_overrides), localdata)
|
||||
data.update_data(localdata)
|
||||
data.expandKeys(localdata)
|
||||
data.setVar('BB_FILENAME', fn, d)
|
||||
data.setVar('BB_CURRENTTASK', task[3:], d)
|
||||
event.fire(TaskStarted(task, localdata), localdata)
|
||||
prefuncs = (data.getVarFlag(task, 'prefuncs', localdata) or "").split()
|
||||
|
|
Loading…
Reference in New Issue