
Embedded Linux Development with Yocto Project
By :

The syntax used by BitBake metadata may be misleading, which can sometimes be hard to trace. We can check the value of each variable we want using the environment option (-e
or --environment
) of BitBake, for example:
$: bitbake -e <recipe> | grep <variable>
In order to understand how BitBake works in more detail, please refer to the BitBake User Manual.
In the following sections, we will see most of the syntaxes commonly used in recipes.
The assignment of a variable can be done as shown:
FOO = "bar"
In the preceding example, the value of the variable FOO
is bar
.
The variable assignment is core to the BitBake metadata syntax as most other examples are performed using variables.
BitBake supports variable referencing. The syntax closely resembles Shell Script, for example:
A = "aval" B = "pre${A}post"
This results in A
containing aval
and B
containing preavalpost
. One important thing to bear in mind is that the variable only...
Change the font size
Change margin width
Change background colour