Re: yocto support

Senthamilarasi mathiyan

Hi Alexandre,

Good Morning! 

I am not introducing any change to kernel.


This is one of my project requirement to enable coverage support to kernel for specific build for my project.


In my project, Already we have few image recipes.



These image recipes are using same kernel  with same configuration, Apart from default kernel configuration, I want to enable few driver support in kernel to enable coverage support for specific requirement.

To enable coverage support in kernel, I have added coverage.cfg in meta-layer.

Ex: /recipes-kernel/linux-msm/files/coverage.cfg


cat coverage.cfg





If I add coverage.cfg in my kernel recipe(snippet below) - It will be taken for all the image build. Whenever do bitbake of following recipe -


The below changes will be added to the build, since this kernel is common for all the image recipes(


Recipe content:


+++ b/recipes-kernel/linux-kernel/

@@ -21,6 +21,7 @@ SRC_URI = "\

           file://audio-kpi.cfg \

           file://ptp-virtual.cfg \

           file://xfs.cfg \

+          file://coverage.cfg \

           ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' file://systemd.cfg', '', d)} \

           ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', ' file://virtualization.cfg', '', d)} \



 Similarly, I have patch for file other recipes.


 In my case, I should not add this change to all the image build.

My requirement: 

I want to create separate image recipe. Ex:


In this recipes 

- I should include "inherit core-image-minimal" + "My specific coverage_support changes".

As per project requirement, I should not create a separate meta layer to maintain this patches.


Can you please help for creating a separate image recipe with specific changes?




On Thu, Jul 14, 2022 at 10:12 AM Senthamilarasi mathiyan <arasilinux1086@...> wrote:
Hi Alexandre, 

I am not pushing any changes to open source kernel. I want to enable few driver module in the kernel. That configuration want to have in file/ folder. 

My changes. 

On Wed, 29 Jun, 2022, 1:37 pm Alexandre Belloni, <alexandre.belloni@...> wrote:
On 28/06/2022 17:21:22+0530, Senthamilarasi mathiyan wrote:
> Dear All
> Good Morning!
> In my project, I am trying to create one custom image recipe in my yocto
> build system.
>  The reason of creating custom image is  -> having few specific
> configurations for kernel and some specific driver Makefile changes to
> enable coverage.
>  I cannot go with .bbappend file, because we are maintaining a
> recipes-append folder in our meta-layer which is common for all the
> production build image recipes.
>  My change is very specific it should not come as part of normal build
> images because it will affect the production build.
>  My use case:
> 1. I have one .cfg file for kernel - which has kernel specific
> configurations.
> 2. I have Makefile changes for driver file.
>  I should bring the above changes to kernel and  driver Makefile during
> build time without using .bbappend file.
>  I want to create a custom image recipe with the specific changes.
>  For example : =( This recipes should have
> + my specific changes)
>  When i build bitbake,  it should  build  with
> + my specific changes .
> Other images recipes also should not affect by this changes.
> My humble request. Can anyone please support how to proceed?

You can't, a recipe can't affect any other recipe. When building, it is too late to introduce any kernel change.

> Kindly share your suggestions.
>  *Regards*
> *Senthamilarasi. M*
> ​


Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering

Join to automatically receive all group messages.