summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorYoann Congal <yoann.congal@smile.fr>2020-10-09 09:15:45 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-10 13:37:56 +0100
commitc46b3352aa2276ddc9a314eefdd43e4240d09cc7 (patch)
tree3dfd851f7d7c5276004e59122de8585ec6a1caf5 /meta/lib
parent57a1ccaa191e5a968ae66c7f50c89d8212c33096 (diff)
downloadpoky-c46b3352aa2276ddc9a314eefdd43e4240d09cc7.tar.gz
bitbake-bblayers/create: Make the example recipe print its message
The example recipe is setup to print a message using bb.plain() in the "do_build" task but this task is "noexec" so the message never prints. This might be confusing. This moves the message printing into another "do_display_banner" task and add it to the do_build "before" list. (From OE-Core rev: 252385bef9b226f32691b8513869ea3e41813b40) Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/bblayers/templates/example.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/bblayers/templates/example.bb b/meta/lib/bblayers/templates/example.bb
index c4b873d593..facaae35d2 100644
--- a/meta/lib/bblayers/templates/example.bb
+++ b/meta/lib/bblayers/templates/example.bb
@@ -2,10 +2,12 @@ SUMMARY = "bitbake-layers recipe"
2DESCRIPTION = "Recipe created by bitbake-layers" 2DESCRIPTION = "Recipe created by bitbake-layers"
3LICENSE = "MIT" 3LICENSE = "MIT"
4 4
5python do_build() { 5python do_display_banner() {
6 bb.plain("***********************************************"); 6 bb.plain("***********************************************");
7 bb.plain("* *"); 7 bb.plain("* *");
8 bb.plain("* Example recipe created by bitbake-layers *"); 8 bb.plain("* Example recipe created by bitbake-layers *");
9 bb.plain("* *"); 9 bb.plain("* *");
10 bb.plain("***********************************************"); 10 bb.plain("***********************************************");
11} 11}
12
13addtask display_banner before do_build