maggu2810

Yocto - Kernel Development

Yocto based kernel development

Author: Markus Rathgeb


Introducton

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

Build kernel:

bitbake virtual/kernel

Continue

Trigger a force deploy to continue the building where left:

bitbake virtual/kernel -f -c deploy

Development Shell

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

Notes