Skip to contentSkip to conversation

base.bbclass: Use bb.plain to print the build header

PATCH In review Richard Purdie 2 participants 2 messages Nov 24, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 base.bbclass: Use bb.plain to print the build header

If we just use print, the bitbake logging functions don't see the message and it can get lost if bitbake is for example logging messages to disk.

---

meta/classes/base.bbclass +1 -1
index ba1f230..72196d6 100644
@@ -232,7 +232,7 @@ python base_eventhandler() {
 
 		statuslines += layers_branch_rev
 		statusmsg = "\nOE Build Configuration:\n%s\n" % '\n'.join(statuslines)
-		print statusmsg
+		bb.plain(statusmsg)
 
 		needed_vars = [ "TARGET_ARCH", "TARGET_OS" ]
 		pesteruser = []
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Richard Purdie

If we just use print, the bitbake logging functions don't see the message and it can get lost if bitbake is for example logging messages to disk.

Quoted 21 lines

---

meta/classes/base.bbclass +1 -1
index ba1f230..72196d6 100644
@@ -232,7 +232,7 @@ python base_eventhandler() {
 
 		statuslines += layers_branch_rev
 		statusmsg = "\nOE Build Configuration:\n%s\n" % '\n'.join(statuslines)
-		print statusmsg
+		bb.plain(statusmsg)
 
 		needed_vars = [ "TARGET_ARCH", "TARGET_OS" ]
 		pesteruser = []

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Signature · 3 lines
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel