raise FuncFailed(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
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)
exec_func(task, localdata)
bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY2", fn, self.cooker.configuration.data)
try:
the_data = bb.cache.Cache.loadDataFull(fn, self.cooker.get_file_appends(fn), self.cooker.configuration.data)
- bb.build.exec_task(taskname, the_data)
+ bb.build.exec_task(fn, taskname, the_data)
except Exception as exc:
logger.critical(str(exc))
os._exit(1)