Book Image

Embedded Linux Development using Yocto Projects - Second Edition

By : Otavio Salvador, Daiane Angolini
Book Image

Embedded Linux Development using Yocto Projects - Second Edition

By: Otavio Salvador, Daiane Angolini

Overview of this book

Yocto Project is turning out to be the best integration framework for creating reliable embedded Linux projects. It has the edge over other frameworks because of its features such as less development time and improved reliability and robustness. Embedded Linux Development using Yocto Project starts with an in-depth explanation of all Yocto Project tools, to help you perform different Linux-based tasks. The book then moves on to in-depth explanations of Poky and BitBake. It also includes some practical use cases for building a Linux subsystem project using Yocto Project tools available for embedded Linux. The book also covers topics such as SDK, recipetool, and others. By the end of the book, you will have learned how to generate and run an image for real hardware boards and will have gained hands-on experience at building efficient Linux systems using Yocto Project.
Table of Contents (22 chapters)
Title Page
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
7
Diving into BitBake Metadata
Index

Common use cases


Nowadays, projects usually have a set of layers to provide the required features. We certainly need to make changes on top of them to adapt them to our specific needs. They may be cosmetic or substantive changes, but the way to make them is the same.

To make changes to a preexisting recipe, we need to create a .bbappend file in our project layer. The name of the file is the same as the original recipe, along with the append suffix. For example, if the original recipe was named <original-layer>/recipes-core/app/app_1.0.bb, our respective .bbappend will be <layer>/recipes-core/app/app_1.0.bbappend.

The .bbappend file can be seen as a piece of text that is appended at the end of the original recipe. It empowers us with an extremely flexible mechanism to avoid duplicating source code in order to apply the required changes to our project's layers.

Note

When there is more than one .bbappend file for a recipe, all of them are joined following the layer's priority order...