Operating Systems and Embedded Software · Build system
Yocto Project
Also known as Yocto, OpenEmbedded, Poky, BitBake
An open-source collaboration project that provides tools, metadata and a reference distribution for building custom Linux-based images for embedded products, regardless of the target hardware architecture.
Explanation
The Yocto Project is not a Linux distribution in itself. It supplies the OpenEmbedded build system, the BitBake task engine (maintained separately) and a reference distribution called Poky, which teams adapt into their own product distribution. Poky is tested and put through QA, but the project states that it cannot be used as a product out of the box.
Its central idea is the layer model. Layers are repositories of related instructions (recipes and configuration) that tell the build system what to do, and later layers can override earlier ones. A typical product combines a silicon vendor's BSP layer, a distribution layer, middleware layers and application layers, which keeps each concern separate and reusable across product variants.
The flexibility has costs: first builds are long and resource-hungry (the shared-state cache speeds up later builds), and the learning curve is steep. Poky follows a six-month release cycle, so products usually pin a release and plan migrations.
How it works
Developers describe the target with configuration for machine, distribution and image, plus a list of layers. BitBake parses the recipes, which state where to fetch each source, how to patch, configure, compile and package it, and resolves dependencies between tasks. Tasks run in parallel and their outputs are cached as shared state, so unchanged steps are reused. The output is a bootable image, packages and, optionally, an SDK with a cross-toolchain for application developers.
Automotive applications
- Building production images for infotainment and telematics ECUs
- Maintaining one distribution across several hardware variants through BSP layers
- Generating SDKs for application teams
- Producing reproducible images and licence information for compliance
Example
A supplier adds the SoC vendor's BSP layer and its own middleware layer to a pinned Yocto release, sets MACHINE to the gateway board, and runs bitbake to produce the root filesystem image and an SDK for application developers.
An illustrative example: any figures in it are worked numbers, not measurements.
References
- Yocto Project Overview and Concepts Manual: Introducing the Yocto Project (opens in a new tab)
“The Yocto Project is an open source collaboration project that helps developers create custom Linux-based systems that are designed for embedded products”
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.