summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/buildinfohelper.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2013-11-01 15:58:31 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-04 10:53:24 +0000
commite1aebfe0180af4d85b85d42b5508aaf52f2fdccb (patch)
tree688b8f62debe27430f785f3673d2c45f74395db4 /bitbake/lib/bb/ui/buildinfohelper.py
parentf6847b0cd2bca53147ff74a40ba2a913bc0f7eb0 (diff)
downloadpoky-e1aebfe0180af4d85b85d42b5508aaf52f2fdccb.tar.gz
bitbake: build, toaster: record proper task type
Bitbake tasks may be of type 'python' or 'shell', or they may not be executed at all, which is record as task type 'noexec'. In order to record proper task type, this patch: * creates no exec task type as the default value in the toaster model definition * adds full task flags to the bb.build.TaskStarted event in build.py * if the task actually starts, the toaster ui will record the type of the task as either 'python' or 'shell' based on the task flags. [YOCTO #5073] [YOCTO #5075] [YOCTO #5327] (Bitbake rev: 6648c57e6d369fc009ea3a9fe939def5d2c67bf5) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/buildinfohelper.py')
-rw-r--r--bitbake/lib/bb/ui/buildinfohelper.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 5881d136c2..4996b4235d 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -483,6 +483,8 @@ class BuildInfoHelper(object):
483 task_information['outcome'] = Task.OUTCOME_EXISTING 483 task_information['outcome'] = Task.OUTCOME_EXISTING
484 else: 484 else:
485 task_information['task_executed'] = True 485 task_information['task_executed'] = True
486 if 'noexec' in vars(event) and event.noexec == True:
487 task_information['script_type'] = Task.CODING_NOEXEC
486 488
487 self.task_order += 1 489 self.task_order += 1
488 task_information['order'] = self.task_order 490 task_information['order'] = self.task_order
@@ -506,8 +508,9 @@ class BuildInfoHelper(object):
506 if '_message' in vars(event): 508 if '_message' in vars(event):
507 task_information['message'] = event._message 509 task_information['message'] = event._message
508 510
509 if 'ispython' in vars(event): 511 if 'taskflags' in vars(event):
510 if event.ispython: 512 # with TaskStarted, we get even more information
513 if 'python' in event.taskflags.keys() and event.taskflags['python'] == '1':
511 task_information['script_type'] = Task.CODING_PYTHON 514 task_information['script_type'] = Task.CODING_PYTHON
512 else: 515 else:
513 task_information['script_type'] = Task.CODING_SHELL 516 task_information['script_type'] = Task.CODING_SHELL