[oe-commits] Chris Larson : base: resurrect messages for bitbake 1.8

git version control git at git.openembedded.org
Fri Apr 22 17:52:28 UTC 2011


Module: openembedded.git
Branch: shr/testing2011.1
Commit: 83235596304c83db7f8e2905f412935590d3af30
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=83235596304c83db7f8e2905f412935590d3af30

Author: Chris Larson <chris_larson at mentor.com>
Date:   Thu Dec 16 14:30:08 2010 -0500

base: resurrect messages for bitbake 1.8

Signed-off-by: Chris Larson <chris_larson at mentor.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 classes/base.bbclass |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/classes/base.bbclass b/classes/base.bbclass
index af4173a..093f815 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -232,6 +232,29 @@ python base_do_unpack() {
             oe_unpack(d, local, urldata)
 }
 
+python old_bitbake_messages () {
+    version = [int(c) for c in bb.__version__.split('.')]
+    if version >= [1, 9, 0]:
+        return
+
+    from bb.event import BuildBase, DepBase
+    from bb.build import TaskBase
+
+    name = bb.event.getName(e)
+    if isinstance(e, TaskBase):
+        pf = bb.data.getVar('PF', e.data, True)
+        msg = 'package %s: task %s: %s' % (pf, e.task, name[4:].lower())
+    elif isinstance(e, BuildBase):
+        msg = 'build %s: %s' % (e.name, name[5:].lower())
+    elif isinstance(e, DepBase):
+        msg = 'package %s: dependency %s %s' % (e.pkg, e.dep, name[:-3].lower())
+    else:
+        return
+
+    bb.note(msg)
+}
+addhandler old_bitbake_messages
+
 python build_summary() {
     from bb import note, error, data
     from bb.event import getName





More information about the Openembedded-commits mailing list