diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-20 21:15:31 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-11 17:12:48 +0000 |
commit | dfb775c67a96a79f3b85104870c0ade46ef2a9ea (patch) | |
tree | 6c2b1732bb45a7806f0db20eee1dd818b5152562 | |
parent | c241f16670cada2cdf45ecddb4961e16edb83486 (diff) | |
download | bitbake-contrib-dfb775c67a96a79f3b85104870c0ade46ef2a9ea.tar.gz |
build/uihelper: Show better information about multiconfig tasks on UI
Currently the UI shows X is building, possibly multiple times but doesn't
say which of the multilibs that might be. This adds a prefix to the task
name so the mulitconfig being built can be identified.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/build.py | 1 | ||||
-rw-r--r-- | lib/bb/ui/uihelper.py | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py index e807a0948..b59a49bc1 100644 --- a/lib/bb/build.py +++ b/lib/bb/build.py @@ -92,6 +92,7 @@ class TaskBase(event.Event): def __init__(self, t, logfile, d): self._task = t self._package = d.getVar("PF", True) + self._mc = d.getVar("BB_CURRENT_MC", True) self.taskfile = d.getVar("FILE", True) self.taskname = self._task self.logfile = logfile diff --git a/lib/bb/ui/uihelper.py b/lib/bb/ui/uihelper.py index fda7cc2c7..113fcedea 100644 --- a/lib/bb/ui/uihelper.py +++ b/lib/bb/ui/uihelper.py @@ -32,7 +32,10 @@ class BBUIHelper: def eventHandler(self, event): if isinstance(event, bb.build.TaskStarted): - self.running_tasks[event.pid] = { 'title' : "%s %s" % (event._package, event._task), 'starttime' : time.time() } + if event._mc != "default": + self.running_tasks[event.pid] = { 'title' : "mc:%s:%s %s" % (event._mc, event._package, event._task), 'starttime' : time.time() } + else: + self.running_tasks[event.pid] = { 'title' : "%s %s" % (event._package, event._task), 'starttime' : time.time() } self.running_pids.append(event.pid) self.needUpdate = True elif isinstance(event, bb.build.TaskSucceeded): |