Search code examples
linux-kernelyocto

Kernel selection using yocto


I am building images for i.MX board using Yocto. My requirement is to build specific kernel for the board.

After downloading from Freescale Yocto repository site, I could see recipes for multiple kernels.

Can you guide me to understand how yocto will decide which kernel to build. I mean where Yocto configured to build specific kernel out of the available kernel recipes?


Solution

  • Select which kernel to build in your machine configuration, see BSP manual and for example stackoverflow question

    Basically, for selecting kernel you can add

    PREFERRED_PROVIDER_virtual/kernel = "my-kernel-recipe"
    

    To your mymachine.conf.