diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-03 11:19:59 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-14 22:32:52 +0100 |
commit | 7daaaaa27f55b5a458656857c6d61a51b34a62fe (patch) | |
tree | 66c0d4a70ea49e656cff685542dd3f95d445570e /bin | |
parent | efb949020215b580e7dc3694c377b18df2fd7e9c (diff) | |
download | bitbake-7daaaaa27f55b5a458656857c6d61a51b34a62fe.tar.gz |
bitbake-worker: Set BB_CURRENTTASK earlier
For some debugging, BB_CURRENTTASK is set too late to be useful as
it isn't present in some event handlers for example. There is no
other way to know which task is actually running so set the value
earlier.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bitbake-worker | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/bitbake-worker b/bin/bitbake-worker index 6a12e1fed..c8eb65567 100755 --- a/bin/bitbake-worker +++ b/bin/bitbake-worker @@ -237,6 +237,7 @@ def fork_off_task(cfg, data, databuilder, workerdata, fn, task, taskname, taskha the_data = databuilder.mcdata[mc] the_data.setVar("BB_WORKERCONTEXT", "1") the_data.setVar("BB_TASKDEPDATA", taskdepdata) + the_data.setVar('BB_CURRENTTASK', taskname.replace("do_", "")) if cfg.limited_deps: the_data.setVar("BB_LIMITEDDEPS", "1") the_data.setVar("BUILDNAME", workerdata["buildname"]) |