From: Yoann Congal Date: Fri, 9 Oct 2020 07:15:45 +0000 (+0200) Subject: bitbake-bblayers/create: Make the example recipe print its message X-Git-Tag: 2020-10-gatesgarth~71 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=252385bef9b226f32691b8513869ea3e41813b40;p=openembedded-core.git 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 --- 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