Chapter 2. Common Tasks

Table of Contents

2.1. Preparing the Build Host to Work on the Kernel
2.1.1. Getting Ready to Develop Using devtool
2.1.2. Getting Ready for Traditional Kernel Development
2.2. Creating and Preparing a Layer
2.3. Modifying an Existing Recipe
2.3.1. Creating the Append File
2.3.2. Applying Patches
2.3.3. Changing the Configuration
2.3.4. Using an "In-Tree"  defconfig File
2.4. Using devtool to Patch the Kernel
2.5. Using Traditional Kernel Development to Patch the Kernel
2.6. Configuring the Kernel
2.6.1. Using  menuconfig
2.6.2. Creating a  defconfig File
2.6.3. Creating Configuration Fragments
2.6.4. Validating Configuration
2.6.5. Fine-Tuning the Kernel Configuration File
2.7. Expanding Variables
2.8. Working with a "Dirty" Kernel Version String
2.9. Working With Your Own Sources
2.10. Working with Out-of-Tree Modules
2.10.1. Building Out-of-Tree Modules on the Target
2.10.2. Incorporating Out-of-Tree Modules
2.11. Inspecting Changes and Commits
2.11.1. What Changed in a Kernel?
2.11.2. Showing a Particular Feature or Branch Change
2.12. Adding Recipe-Space Kernel Features

This chapter presents several common tasks you perform when you work with the Yocto Project Linux kernel. These tasks include preparing your host development system for kernel development, preparing a layer, modifying an existing recipe, patching the kernel, configuring the kernel, iterative development, working with your own sources, and incorporating out-of-tree modules.

Note

The examples presented in this chapter work with the Yocto Project 2.4 Release and forward.