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. Ex: core_image_minimal.bb core_image_a.bb core_image_b.bb
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 CONFIG_GCOV=y CONFIG_DEBUG_FS=y CONFIG_GCOV_KERNEL=y
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 - core_image_minimal.bb, core_image_a.bb, core_image_b.bb
The below changes will be added to the build, since this kernel is common for all the image recipes(core_image_minimal.bb core_image_a.bb core_image_b.bb).
Recipe content:
+++ b/recipes-kernel/linux-kernel/linux-kernel_5.x.bb @@ -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: core_image_myrecipe.bb
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? Regards Senthamilarasi.M
On Thu, Jul 14, 2022 at 10:12 AM Senthamilarasi mathiyan <arasilinux1086@...> wrote:
|
|