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-22 12:16:42 +0100 |
commit | cb186c76b9f3d997b21f36c24cebb6b4a8413774 (patch) | |
tree | 9ffb6a2ccdef9ee8360838353ea1d8a53c6ce12e /meta/lib/bblayers | |
parent | 7a2bbca3daf83e6982dcf569ef7fd1a068392a1e (diff) | |
download | poky-cb186c76b9f3d997b21f36c24cebb6b4a8413774.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: 2387f968b8dd90de9f0907ee571ec6207ffa9a19)
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 252385bef9b226f32691b8513869ea3e41813b40)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/bblayers')
-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 | ||