Difference between revisions of "Add a debug banner in a Yocto recipe"

From KoanSoftware Wiki
Jump to: navigation, search
(Created page with "== Add a debug banner in a Yocto recipe == Sometime you may need to understand if your recipe is taken into account by bitbake. Adding the following code at the end of your...")
 
(Add a debug banner in a Yocto recipe)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
== Add a debug banner in a Yocto recipe ==
 
== Add a debug banner in a Yocto recipe ==
  
Sometime you may need to understand if your recipe is taken into account by bitbake.
+
Sometime you may need to understand if your recipe is taken into account by '''bitbake'''.
  
Adding the following code at the end of your recipe may help you to verify that the build is doing what you expect:
+
Adding the following code at the end of your recipe may help you to verify that the build is doing what you expected:
  
 
  python do_display_banner() {
 
  python do_display_banner() {
     bb.plain("***********************************************");
+
     bb.plain("********************************************");
     bb.plain("*  This is a message tracing the bitbake work *");
+
     bb.plain("*  This is a message tracing bitbake work *");
     bb.plain("***********************************************");
+
     bb.plain("********************************************");
 
  }
 
  }
 
   
 
   
 
  addtask display_banner before do_build
 
  addtask display_banner before do_build

Latest revision as of 12:32, 4 May 2023

Add a debug banner in a Yocto recipe

Sometime you may need to understand if your recipe is taken into account by bitbake.

Adding the following code at the end of your recipe may help you to verify that the build is doing what you expected:

python do_display_banner() {
   bb.plain("********************************************");
   bb.plain("*  This is a message tracing bitbake work  *");
   bb.plain("********************************************");
}

addtask display_banner before do_build