O'Reilly logo

Embedded Linux Development with Yocto Project by Daiane Angolini, Otavio Salvador

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with metadata

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 basic variable setting

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.

Variable expansion

BitBake ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required