Patchwork [bitbake-devel,11/13] bitbake: event: adding an event to pass build file sizes

login
register
mail settings
Submitter Alexandru DAMIAN
Date Sept. 9, 2013, 4:41 p.m.
Message ID <19f500f11ded389e89bec0d3963bdb7ebf2dec95.1378743829.git.alexandru.damian@intel.com>
Download mbox | patch
Permalink /patch/57705/
State New
Headers show

Comments

Alexandru DAMIAN - Sept. 9, 2013, 4:41 p.m.
From: Alexandru DAMIAN <alexandru.damian@intel.com>

Adding an event, ignored by default, that will pass
information about the content of each package file that
gets built.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
---
 bitbake/lib/bb/event.py     | 8 ++++++++
 bitbake/lib/bb/ui/knotty.py | 1 +
 2 files changed, 9 insertions(+)

Patch

diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 4be0e5b..781b8e7 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -601,6 +601,14 @@  class SinglePackageInfo(Event):
         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 010530a..1f09a55 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -473,6 +473,7 @@  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,