Book Image

Embedded Linux Development with Yocto Project

Book Image

Embedded Linux Development with Yocto Project

Overview of this book

Table of Contents (22 chapters)
Embedded Linux Development with Yocto Project
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
References
Index

Understanding BitBake's tasks


BitBake uses execution units, which are in essence a set of clustered instructions that run in sequence. These units are known as tasks. There are many tasks being scheduled, executed, and checked by BitBake during every recipe build, provided by classes to form the framework that we use to build a recipe. Some are important to be understood as we often use, extend, implement, or replace them ourselves when writing a recipe.

Run the following command:

$: bitbake <recipe>

BitBake runs a set of scheduled tasks. When we wish to run a specific task, we can use the following command:

$: bitbake <recipe> -c <task>

To list the tasks defined for a recipe, we can use the following command:

$: bitbake <recipe> -c listtasks

We will briefly describe each of these here:

  • do_fetch: The first step when building a recipe is fetching the needed source. This is done using the fetching backends feature we discussed previously in this chapter. It is important...