TipsAndTricks/KernelDevelopmentWithEsdk
Overview
This manual describes the Linux kernel development process with Yocto and devtool.
Setup your environment
The following command will configure the Yocto build environment
source poky/oe-init-build-env kernel-dev
Checkout the kernel source tree and construct .config
Check out the Linux kernel source and construct a .config from the Yocto kernel configuration segments. The sources can be found in /path_to_build_directory/kernel-dev/workspace/sources/linux-yocto.
devtool modify linux-yocto
Modify your kernel and commit your changes
You can navigate to the Linux source directory (/path_to_build_directory/kernel-dev/workspace/sources/linux-yocto) and modify the kernel.
Build your kernel
Build the kernel in your workspace directory
devtool build linux-yocto
Build an image with your kernel changes
devtool build-image core-image-minimal
Export patches and create a bbappend file
To export your commits to patches and a bbappend file use the following command.
devtool finish linux-yocto /path_to_poky_directory/meta-yocto-bsp/
The patches and the bbappend can be found in /path_to_poky_directory/meta-yocto-bsp/recipes-kernel/linux.
Build image
You can now build an image which will include your kernel patches.
Execute the following command from your build directory ( e.g /path_to_build_directory/kernel-dev/)
bitbake core-image-minimal