1.2.9. Linux Kernel Configuration

You can find these files in the BSP Layer at:

     meta-bsp_name/recipes-kernel/linux/linux-yocto*.bbappend
                    

These files append machine-specific changes to the main kernel recipe you are using.

For your BSP, you typically want to use an existing Yocto Project kernel recipe found in the Source Directory at meta/recipes-kernel/linux. You can append machine-specific changes to the kernel recipe by using a similarly named append file, which is located in the BSP Layer for your target device (e.g. the meta-bsp_name/recipes-kernel/linux directory).

Suppose you are using the linux-yocto_4.4.bb recipe to build the kernel. In other words, you have selected the kernel in your bsp_name.conf file by adding PREFERRED_PROVIDER and PREFERRED_VERSION statements as follows:

     PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
     PREFERRED_VERSION_linux-yocto ?= "4.4%"
                    

Note

When the preferred provider is assumed by default, the PREFERRED_PROVIDER statement does not appear in the bsp_name.conf file.

You would use the linux-yocto_4.4.bbappend file to append specific BSP settings to the kernel, thus configuring the kernel for your particular BSP.

You can find more information on what your append file should contain in the "Creating the Append File" section in the Yocto Project Linux Kernel Development Manual.