Configuring the Linux kernel
In this recipe, we will explain how to configure a Linux kernel using the Yocto build system.
Getting ready
Before configuring the kernel, we need to provide a default configuration for our machine, which is the one the Yocto project uses to configure a kernel. When defining a new machine in your BSP layer, you need to provide a defconfig
file.
The Wandboard's defconfig
file is stored under sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-wandboard-3.10.17/defconfig
.
This would be the base defconfig
file for our custom hardware, so we copy it to our BSP layer:
$ cd /opt/yocto/fsl-community-bsp/sources $ mkdir -p meta-bsp-custom/recipes-kernel/linux/linux-wandboard- 3.10.17/ $ cp meta-fsl-arm-extra/recipes-kernel/linux/linux-wandboard- ...
Get Embedded Linux for Developers now with the O’Reilly learning platform.
O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.