Yocto Project Development Tasks Manual
Table of Contents
- 1 The Yocto Project Development Tasks Manual
- 2 Setting Up to Use the Yocto Project
- 3 Understanding and Creating Layers
- 3.1 Creating Your Own Layer
- 3.2 Following Best Practices When Creating Layers
- 3.3 Making Sure Your Layer is Compatible With Yocto Project
- 3.4 Enabling Your Layer
- 3.5 Appending Other Layers Metadata With Your Layer
- 3.6 Prioritizing Your Layer
- 3.7 Managing Layers
- 3.8 Creating a General Layer Using the
bitbake-layers
Script - 3.9 Adding a Layer Using the
bitbake-layers
Script - 3.10 Saving and restoring the layers setup
- 4 Customizing Images
- 5 Writing a New Recipe
- 5.1 Overview
- 5.2 Locate or Automatically Create a Base Recipe
- 5.3 Storing and Naming the Recipe
- 5.4 Running a Build on the Recipe
- 5.5 Fetching Code
- 5.6 Unpacking Code
- 5.7 Patching Code
- 5.8 Licensing
- 5.9 Dependencies
- 5.10 Configuring the Recipe
- 5.11 Using Headers to Interface with Devices
- 5.12 Compilation
- 5.13 Installing
- 5.14 Enabling System Services
- 5.15 Packaging
- 5.16 Sharing Files Between Recipes
- 5.17 Using Virtual Providers
- 5.18 Properly Versioning Pre-Release Recipes
- 5.19 Post-Installation Scripts
- 5.20 Testing
- 5.21 Examples
- 5.22 Following Recipe Style Guidelines
- 5.23 Recipe Syntax
- 6 Adding a New Machine
- 7 Upgrading Recipes
- 8 Finding Temporary Source Code
- 9 Using Quilt in Your Workflow
- 10 Using a Development Shell
- 11 Using a Python Development Shell
- 12 Building
- 12.1 Building a Simple Image
- 12.2 Building Images for Multiple Targets Using Multiple Configurations
- 12.3 Building an Initial RAM Filesystem (Initramfs) Image
- 12.4 Building a Tiny System
- 12.5 Building Images for More than One Machine
- 12.6 Building Software from an External Source
- 12.7 Replicating a Build Offline
- 13 Building Images for Multiple Targets With Multiconfig
- 14 Speeding Up a Build
- 15 Working With Libraries
- 16 Working with Pre-Built Libraries
- 17 Using the
devtool
command-line tool- 17.1 Use
devtool add
to Add an Application - 17.2 Use
devtool modify
to Modify the Source of an Existing Component - 17.3
devtool ide-sdk
configures IDEs and bootstraps SDKs - 17.4 Use
devtool upgrade
to Create a Version of the Recipe that Supports a Newer Version of the Software - 17.5 A Closer Look at
devtool add
- 17.6 Working With Recipes
- 17.7 Restoring the Target Device to its Original State
- 17.1 Use
- 18 Using x32 psABI
- 19 Enabling GObject Introspection Support
- 20 Optionally Using an External Toolchain
- 21 Creating Partitioned Images Using Wic
- 22 Flashing Images Using bmaptool
- 23 Making Images More Secure
- 24 Creating Your Own Distribution
- 25 Creating a Custom Template Configuration Directory
- 26 Conserving Disk Space
- 27 Working with Packages
- 27.1 Excluding Packages from an Image
- 27.2 Incrementing a Package Version
- 27.3 Handling Optional Module Packaging
- 27.4 Using Runtime Package Management
- 27.5 Generating and Using Signed Packages
- 27.6 Testing Packages With ptest
- 27.7 Creating Node Package Manager (NPM) Packages
- 27.8 Adding custom metadata to packages
- 28 Efficiently Fetching Source Files During a Build
- 29 Selecting an Initialization Manager
- 30 Selecting a Device Manager
- 31 Using an External SCM
- 32 Creating a Read-Only Root Filesystem
- 33 Maintaining Build Output Quality
- 34 Debugging Tools and Techniques
- 34.1 Viewing Logs from Failed Tasks
- 34.2 Viewing Variable Values
- 34.3 Viewing Package Information with
oe-pkgdata-util
- 34.4 Viewing Dependencies Between Recipes and Tasks
- 34.5 Viewing Task Variable Dependencies
- 34.6 Debugging signature construction and unexpected task executions
- 34.7 Viewing Metadata Used to Create the Input Signature of a Shared State Task
- 34.8 Invalidating Shared State to Force a Task to Run
- 34.9 Running Specific Tasks
- 34.10 General BitBake Problems
- 34.11 Building with No Dependencies
- 34.12 Recipe Logging Mechanisms
- 34.13 Debugging Parallel Make Races
- 34.14 Debugging With the GNU Project Debugger (GDB) Remotely
- 34.15 Debugging with the GNU Project Debugger (GDB) on the Target
- 34.16 Enabling Minidebuginfo
- 34.17 Other Debugging Tips
- 35 Working With Licenses
- 36 Dealing with Vulnerability Reports
- 37 Checking for Vulnerabilities
- 38 Creating a Software Bill of Materials
- 39 Using the Error Reporting Tool
- 40 Using Wayland and Weston
- 41 Using the Quick EMUlator (QEMU)
- 41.1 Overview
- 41.2 Running QEMU
- 41.3 Switching Between Consoles
- 41.4 Removing the Splash Screen
- 41.5 Disabling the Cursor Grab
- 41.6 Running Under a Network File System (NFS) Server
- 41.7 QEMU CPU Compatibility Under KVM
- 41.8 QEMU Performance
- 41.9 QEMU Command-Line Syntax
- 41.10
runqemu
Command-Line Options
- 42 Locking and Unlocking Recipes Using
bblock
The Yocto Project ®
Permission is granted to copy, distribute and/or modify this document under the terms of the Creative Commons Attribution-Share Alike 2.0 UK: England & Wales as published by Creative Commons.
To report any inaccuracies or problems with this (or any other Yocto Project)
manual, or to send additions or changes, please send email/patches to the Yocto
Project documentation mailing list at docs@lists.yoctoproject.org
or
log into the Libera Chat #yocto
channel.