Yocto based kernel development
Author: Markus Rathgeb
The linux kernel could be provided by different recipes dependent on your setup, e.g.
To refer to the setup specific kernel we can use “virtual/kernel”.
Build kernel:
bitbake virtual/kernel
Trigger a force deploy to continue the building where left:
bitbake virtual/kernel -f -c deploy
Start a devshell
bitbake virtual/kernel -c devshell
All of the yocto scripts required to build are in the build output directory, $KBUILD_OUTPUT.
echo $KBUILD_OUTPUT
Now you can execute e.g. the make command without consider which ARCH, CC etc. have to be used as all variables are already set.
make Image