aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-12-16 14:30:08 -0500
committerMartin Jansa <Martin.Jansa@gmail.com>2011-04-22 19:41:11 +0200
commit83235596304c83db7f8e2905f412935590d3af30 (patch)
tree32ebd7ebbe8986166c45febb329392afabc359e0
parent1554c92f2883b79fb028c8567f4a335f45546aac (diff)
downloadopenembedded-83235596304c83db7f8e2905f412935590d3af30.zip
openembedded-83235596304c83db7f8e2905f412935590d3af30.tar.gz
openembedded-83235596304c83db7f8e2905f412935590d3af30.tar.bz2
base: resurrect messages for bitbake 1.8
Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--classes/base.bbclass23
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