aboutsummaryrefslogtreecommitdiffstats
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:44 +0100
commit252385bef9b226f32691b8513869ea3e41813b40 (patch)
tree114ece82bcb1a160e422e34b391509a979d22b08
parentc263d810b7eb47ee90f2adeb5ab6decf7332bec2 (diff)
downloadopenembedded-core-contrib-252385bef9b226f32691b8513869ea3e41813b40.tar.gz
openembedded-core-contrib-252385bef9b226f32691b8513869ea3e41813b40.tar.bz2
openembedded-core-contrib-252385bef9b226f32691b8513869ea3e41813b40.zip
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. Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 c4b873d593c..facaae35d23 100644
--- a/meta/lib/bblayers/templates/example.bb
+++ b/meta/lib/bblayers/templates/example.bb
@@ -2,10 +2,12 @@ SUMMARY = "bitbake-layers recipe"
DESCRIPTION = "Recipe created by bitbake-layers"
LICENSE = "MIT"
-python do_build() {
+python do_display_banner() {
bb.plain("***********************************************");
bb.plain("* *");
bb.plain("* Example recipe created by bitbake-layers *");
bb.plain("* *");
bb.plain("***********************************************");
}
+
+addtask display_banner before do_build