aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-03 11:19:59 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-14 22:32:52 +0100
commit7daaaaa27f55b5a458656857c6d61a51b34a62fe (patch)
tree66c0d4a70ea49e656cff685542dd3f95d445570e /bin
parentefb949020215b580e7dc3694c377b18df2fd7e9c (diff)
downloadbitbake-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-xbin/bitbake-worker1
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"])