diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-02 09:51:00 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-03 12:40:41 +0100 |
commit | 25129a6afed3599ceb4ea9ec65449c8128d8e52e (patch) | |
tree | 103c62ae351c9c87f61bf68358eb185494a04ccd | |
parent | 53eaed5c155656a60e603439c00c541052c8d043 (diff) | |
download | poky-25129a6afed3599ceb4ea9ec65449c8128d8e52e.tar.gz |
bitbake: runqueue: Add sceneQueueComplete event
Its useful to have an event emitted when all of the sceneQueue tasks
have completed since the metadata can hook this for processing.
Therefore add such an event.
(Bitbake rev: 38d4f65bf1cbcdd5a2d60dff0e1d2859c34ed62e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index f68a11d90d..baaac445bd 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -1985,6 +1985,10 @@ class RunQueueExecuteScenequeue(RunQueueExecute): | |||
1985 | logger.debug(1, 'We can skip tasks %s', sorted(self.rq.scenequeue_covered)) | 1985 | logger.debug(1, 'We can skip tasks %s', sorted(self.rq.scenequeue_covered)) |
1986 | 1986 | ||
1987 | self.rq.state = runQueueRunInit | 1987 | self.rq.state = runQueueRunInit |
1988 | |||
1989 | completeevent = sceneQueueComplete(self.stats, self.rq) | ||
1990 | bb.event.fire(completeevent, self.cfgData) | ||
1991 | |||
1988 | return True | 1992 | return True |
1989 | 1993 | ||
1990 | def runqueue_process_waitpid(self, task, status): | 1994 | def runqueue_process_waitpid(self, task, status): |
@@ -2067,6 +2071,14 @@ class sceneQueueTaskFailed(sceneQueueEvent): | |||
2067 | sceneQueueEvent.__init__(self, task, stats, rq) | 2071 | sceneQueueEvent.__init__(self, task, stats, rq) |
2068 | self.exitcode = exitcode | 2072 | self.exitcode = exitcode |
2069 | 2073 | ||
2074 | class sceneQueueComplete(sceneQueueEvent): | ||
2075 | """ | ||
2076 | Event when all the sceneQueue tasks are complete | ||
2077 | """ | ||
2078 | def __init__(self, stats, rq): | ||
2079 | self.stats = stats.copy() | ||
2080 | bb.event.Event.__init__(self) | ||
2081 | |||
2070 | class runQueueTaskCompleted(runQueueEvent): | 2082 | class runQueueTaskCompleted(runQueueEvent): |
2071 | """ | 2083 | """ |
2072 | Event notifing a task completed | 2084 | Event notifing a task completed |