From 2387f968b8dd90de9f0907ee571ec6207ffa9a19 Mon Sep 17 00:00:00 2001 From: Yoann Congal Date: Fri, 9 Oct 2020 09:15:45 +0200 Subject: 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 Signed-off-by: Richard Purdie (cherry picked from commit 252385bef9b226f32691b8513869ea3e41813b40) Signed-off-by: Steve Sakoman --- meta/lib/bblayers/templates/example.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'meta/lib') 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" 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 -- cgit 1.2.3-korg