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

Fetching the source code


When the Poky source code is downloaded, what is actually copied is the metadata and the BitBake tool. Additional source code is fetched on demand. One of the main features supported by BitBake is source code fetching.

This support has been designed to be as modular and as flexible as possible. Every Linux-based system includes the Linux kernel and several other utilities that form the root filesystem, such as OpenSSH or a Linux kernel.

The OpenSSH source code is available from its upstream website as a tar.gz file hosted on an HTTP server, while the Linux kernel release is usually hosted on a Git repository, and those two different source codes can easily be fetched by BitBake.

BitBake offers support for many different fetcher modules that allow the retrieval of tarball files and a number of other protocols, such as Git, Subversion, Bazaar, OSC, HTTP, HTTPS, FTP, CVS, Mercurial, Perforce, and SSH.

The mechanism used by BitBake to fetch the source code is internally...