[bitbake-devel] [PATCH 7/8] bitbake: event: adding events to allow bbclasses to push custom info
Alex DAMIAN
alexandru.damian at intel.com
Mon Sep 16 11:56:57 UTC 2013
From: Alexandru DAMIAN <alexandru.damian at intel.com>
We add a new event that will be triggered by the
package-building class, containing the information
about the currently built package.
Adding an event that will passi information about the
content of each package file that gets built.
Knotty UI will ignore these events by default.
Maybe a mechanism for using a single generic event is in order ?
Signed-off-by: Alexandru DAMIAN <alexandru.damian at intel.com>
---
bitbake/lib/bb/event.py | 16 ++++++++++++++++
bitbake/lib/bb/ui/knotty.py | 2 ++
2 files changed, 18 insertions(+)
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 67cfcea..7dd9236 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -589,6 +589,22 @@ class PackageInfo(Event):
Event.__init__(self)
self._pkginfolist = pkginfolist
+class SinglePackageInfo(Event):
+ """
+ Single Package Information sent on emit_pkgdata
+ """
+ def __init__(self, data):
+ Event.__init__(self)
+ self._data = data
+
+class PackageFileSizes(Event):
+ """
+ Event that contains information about the file sizes contained in a package.
+ """
+ def __init__(self, data):
+ Event.__init__(self)
+ self._data = data
+
class SanityCheck(Event):
"""
Event to issue sanity check
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 0211b50..03baa75 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -477,6 +477,8 @@ def main(server, eventHandler, params, tf = TerminalFilter):
# ignore
if isinstance(event, (bb.event.BuildBase,
+ bb.event.PackageFileSizes,
+ bb.event.SinglePackageInfo,
bb.event.StampUpdate,
bb.event.ConfigParsed,
bb.event.RecipeParsed,
--
1.8.1.2
More information about the bitbake-devel
mailing list