Book Image

Embedded Linux Development Using Yocto Project - Third Edition

By : Otavio Salvador, Daiane Angolini
Book Image

Embedded Linux Development Using Yocto Project - Third Edition

By: Otavio Salvador, Daiane Angolini

Overview of this book

The Yocto Project is the industry standard for developing dependable embedded Linux projects. It stands out from other frameworks by offering time-efficient development with enhanced reliability and robustness. With Embedded Linux Development Using Yocto Project, you’ll acquire an understanding of Yocto Project tools, helping you perform different Linux-based tasks. You’ll gain a deep understanding of Poky and BitBake, explore practical use cases for building a Linux subsystem project, employ Yocto Project tools available for embedded Linux, and uncover the secrets of SDK, recipe tool, and others. This new edition is aligned with the latest long-term support release of the aforementioned technologies and introduces two new chapters, covering optimal emulation in QEMU for faster product development and best practices. By the end of this book, you’ll be well-equipped to generate and run an image for real hardware boards. You’ll gain hands-on experience in building efficient Linux systems using the Yocto Project.
Table of Contents (20 chapters)

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. During every recipe’s build, BitBake, schedules, executes, and checks many tasks provided by classes to form the framework we use to build a recipe. Therefore, it is essential to understand some of these, as we often use, extend, implement, or replace them ourselves when writing a recipe.

When we run the following command, BitBake runs a set of scheduled tasks:

Figure 5.11 – How to run all tasks for a recipe

Figure 5.11 – How to run all tasks for a recipe

When we wish to run a specific task, we can use the following command:

Figure 5.12  – How to run a particular task for a recipe

Figure 5.12 – How to run a particular task for a recipe

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

Figure 5.13  – How to list all tasks for a recipe

Figure 5.13 – How to list all tasks for a recipe

The output of listtasks for the wget...