diff options
author | Yoann Congal <yoann.congal@smile.fr> | 2020-10-09 09:15:45 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-10-10 13:37:56 +0100 |
commit | c46b3352aa2276ddc9a314eefdd43e4240d09cc7 (patch) | |
tree | 3dfd851f7d7c5276004e59122de8585ec6a1caf5 /meta | |
parent | 57a1ccaa191e5a968ae66c7f50c89d8212c33096 (diff) | |
download | poky-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')
-rw-r--r-- | meta/lib/bblayers/templates/example.bb | 4 |
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" | |||
2 | DESCRIPTION = "Recipe created by bitbake-layers" | 2 | DESCRIPTION = "Recipe created by bitbake-layers" |
3 | LICENSE = "MIT" | 3 | LICENSE = "MIT" |
4 | 4 | ||
5 | python do_build() { | 5 | python 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 | |||
13 | addtask display_banner before do_build | ||