summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/event.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-06-23 22:59:08 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-08 09:57:26 +0100
commit8d56d596bb2e48332e8f8c6aed78445f7ffb44bf (patch)
tree71fca3c860622183e43f7633db72a367113aff94 /bitbake/lib/bb/event.py
parent0e3281f68b511ab7bf9d6b1c1f905ec794d3032a (diff)
downloadpoky-8d56d596bb2e48332e8f8c6aed78445f7ffb44bf.tar.gz
bitbake: knotty: add code to support showing progress for sstate object querying
Add support code on the BitBake side to allow sstate.bbclass in OpenEmbedded to report progress when it is checking for availability of artifacts from shared state mirrors. Part of the implementation for [YOCTO #5853]. (Bitbake rev: 070ae856da0715dbaf4c560c837ea796ffc29f00) 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/event.py')
-rw-r--r--bitbake/lib/bb/event.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 9b4a4f97b5..a5f026e151 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -647,6 +647,33 @@ class MetadataEvent(Event):
647 self.type = eventtype 647 self.type = eventtype
648 self._localdata = eventdata 648 self._localdata = eventdata
649 649
650class ProcessStarted(Event):
651 """
652 Generic process started event (usually part of the initial startup)
653 where further progress events will be delivered
654 """
655 def __init__(self, processname, total):
656 Event.__init__(self)
657 self.processname = processname
658 self.total = total
659
660class ProcessProgress(Event):
661 """
662 Generic process progress event (usually part of the initial startup)
663 """
664 def __init__(self, processname, progress):
665 Event.__init__(self)
666 self.processname = processname
667 self.progress = progress
668
669class ProcessFinished(Event):
670 """
671 Generic process finished event (usually part of the initial startup)
672 """
673 def __init__(self, processname):
674 Event.__init__(self)
675 self.processname = processname
676
650class SanityCheck(Event): 677class SanityCheck(Event):
651 """ 678 """
652 Event to run sanity checks, either raise errors or generate events as return status. 679 Event to run sanity checks, either raise errors or generate events as return status.