summaryrefslogtreecommitdiffstats
path: root/bitbake/bin/bitbake-worker
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:37:43 +0100
commit5cd1fd86f49ef98f4fb24b0e4806583bd201cb99 (patch)
tree493cb0dab5566b313da4dd3540de0c209b3bec55 /bitbake/bin/bitbake-worker
parent5d11fecd3f7b89040a5d3ea1b7c25eef6536e8c2 (diff)
downloadpoky-5cd1fd86f49ef98f4fb24b0e4806583bd201cb99.tar.gz
bitbake: 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. (Bitbake rev: 7daaaaa27f55b5a458656857c6d61a51b34a62fe) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin/bitbake-worker')
-rwxr-xr-xbitbake/bin/bitbake-worker1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker
index 6a12e1fed2..c8eb65567f 100755
--- a/bitbake/bin/bitbake-worker
+++ b/bitbake/bin/bitbake-worker
@@ -237,6 +237,7 @@ def fork_off_task(cfg, data, databuilder, workerdata, fn, task, taskname, taskha
237 the_data = databuilder.mcdata[mc] 237 the_data = databuilder.mcdata[mc]
238 the_data.setVar("BB_WORKERCONTEXT", "1") 238 the_data.setVar("BB_WORKERCONTEXT", "1")
239 the_data.setVar("BB_TASKDEPDATA", taskdepdata) 239 the_data.setVar("BB_TASKDEPDATA", taskdepdata)
240 the_data.setVar('BB_CURRENTTASK', taskname.replace("do_", ""))
240 if cfg.limited_deps: 241 if cfg.limited_deps:
241 the_data.setVar("BB_LIMITEDDEPS", "1") 242 the_data.setVar("BB_LIMITEDDEPS", "1")
242 the_data.setVar("BUILDNAME", workerdata["buildname"]) 243 the_data.setVar("BUILDNAME", workerdata["buildname"])