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)

Metadata types

There are three major areas where we can classify the metadata used by BitBake. They are as follows:

  • Configuration (the .conf files)
  • Classes (the .bbclass files)
  • Recipes (the .bb and .bbappend files)

The configuration files define the global content to provide information and configure how the recipes work. One typical example of a configuration file is the machine file, which has a list of settings that describes the hardware.

The whole system uses the classes that recipes can inherit according to their needs or by default. They define the commonly used system’s behavior and provide the base methods. For example, kernel.bbclass abstracts tasks related to building and packaging the Linux kernel independently of version or vendor changes.


The recipes and classes mix Python and Shell Script code.

The classes and recipes describe the tasks to be run and provide the information needed to allow BitBake to generate the required...