diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-13 15:39:07 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-13 15:39:07 +0100 |
commit | 89c72609311c18045e47822649fbcc25099e4860 (patch) | |
tree | f958c7b2220a61b000780d6f3a4221f5fc544135 /bitbake/lib | |
parent | d94f0f74c1137d90f88be57c32beb1bc02843f38 (diff) | |
download | openembedded-core-89c72609311c18045e47822649fbcc25099e4860.tar.gz openembedded-core-89c72609311c18045e47822649fbcc25099e4860.tar.bz2 openembedded-core-89c72609311c18045e47822649fbcc25099e4860.zip |
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>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/build.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index ee138a914a..1d0ae463c1 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py @@ -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() |