All of lore.kernel.org
 help / color / mirror / Atom feed
* yocto support
       [not found] <AM9PR10MB4403B8BF23EC7571D7F2E5C7ACB89@AM9PR10MB4403.EURPRD10.PROD.OUTLOOK.COM>
@ 2022-06-28 11:51 ` Senthamilarasi mathiyan
  2022-06-28 12:34   ` [yocto] " Alexander Kanavin
       [not found]   ` <YrwISJ1PCeqQzu6I@mail.local>
  0 siblings, 2 replies; 7+ messages in thread
From: Senthamilarasi mathiyan @ 2022-06-28 11:51 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1331 bytes --]

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 : custom_image.bb =( This recipes should have
core_image_minimal.bb + my specific changes)

 When i build bitbake custom_image.bb,  it should  build  with
core_image_minimal.bb + my specific changes .

Other images recipes also should not affect by this changes.

My humble request. Can anyone please support how to proceed?

Kindly share your suggestions.

 *Regards*

*Senthamilarasi. M*

​

[-- Attachment #2: Type: text/html, Size: 4905 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [yocto] yocto support
  2022-06-28 11:51 ` yocto support Senthamilarasi mathiyan
@ 2022-06-28 12:34   ` Alexander Kanavin
  2022-06-29  4:23     ` Senthamilarasi mathiyan
       [not found]   ` <YrwISJ1PCeqQzu6I@mail.local>
  1 sibling, 1 reply; 7+ messages in thread
From: Alexander Kanavin @ 2022-06-28 12:34 UTC (permalink / raw)
  To: Senthamilarasi mathiyan; +Cc: Yocto-mailing-list

If the change is private to you, then you can make a simple layer and
make all the needed modifications there. Is this not possible?

Alex

On Tue, 28 Jun 2022 at 13:51, Senthamilarasi mathiyan
<arasilinux1086@gmail.com> 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 : custom_image.bb =( This recipes should have core_image_minimal.bb + my specific changes)
>
>  When i build bitbake custom_image.bb,  it should  build  with core_image_minimal.bb + my specific changes .
>
> Other images recipes also should not affect by this changes.
>
> My humble request. Can anyone please support how to proceed?
>
> Kindly share your suggestions.
>
>  Regards
>
> Senthamilarasi. M
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#57401): https://lists.yoctoproject.org/g/yocto/message/57401
> Mute This Topic: https://lists.yoctoproject.org/mt/92041991/1686489
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [yocto] yocto support
  2022-06-28 12:34   ` [yocto] " Alexander Kanavin
@ 2022-06-29  4:23     ` Senthamilarasi mathiyan
  0 siblings, 0 replies; 7+ messages in thread
From: Senthamilarasi mathiyan @ 2022-06-29  4:23 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: Yocto-mailing-list

[-- Attachment #1: Type: text/plain, Size: 2366 bytes --]

Hi Alexander,

This is not my private change,so i cannot create my own layer. Without
creating layer and .bbappend file should implement.

Can anyone please support?

Regards
Senthamilarasi. M


On Tue, 28 Jun, 2022, 6:04 pm Alexander Kanavin, <alex.kanavin@gmail.com>
wrote:

> If the change is private to you, then you can make a simple layer and
> make all the needed modifications there. Is this not possible?
>
> Alex
>
> On Tue, 28 Jun 2022 at 13:51, Senthamilarasi mathiyan
> <arasilinux1086@gmail.com> 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 : custom_image.bb =( This recipes should have
> core_image_minimal.bb + my specific changes)
> >
> >  When i build bitbake custom_image.bb,  it should  build  with
> core_image_minimal.bb + my specific changes .
> >
> > Other images recipes also should not affect by this changes.
> >
> > My humble request. Can anyone please support how to proceed?
> >
> > Kindly share your suggestions.
> >
> >  Regards
> >
> > Senthamilarasi. M
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#57401):
> https://lists.yoctoproject.org/g/yocto/message/57401
> > Mute This Topic: https://lists.yoctoproject.org/mt/92041991/1686489
> > Group Owner: yocto+owner@lists.yoctoproject.org
> > Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
> alex.kanavin@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
>

[-- Attachment #2: Type: text/html, Size: 4009 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [yocto] yocto support
       [not found]   ` <YrwISJ1PCeqQzu6I@mail.local>
@ 2022-07-14  4:42     ` Senthamilarasi mathiyan
  2022-07-14  4:59       ` Senthamilarasi mathiyan
  0 siblings, 1 reply; 7+ messages in thread
From: Senthamilarasi mathiyan @ 2022-07-14  4:42 UTC (permalink / raw)
  To: Alexandre Belloni; +Cc: Yocto-mailing-list

[-- Attachment #1: Type: text/plain, Size: 2561 bytes --]

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.
Kern

On Wed, 29 Jun, 2022, 1:37 pm Alexandre Belloni, <
alexandre.belloni@bootlin.com> 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 : custom_image.bb =( This recipes should have
> > core_image_minimal.bb + my specific changes)
> >
> >  When i build bitbake custom_image.bb,  it should  build  with
> > core_image_minimal.bb + 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
> custom_image.bb, it is too late to introduce any kernel change.
>
> > Kindly share your suggestions.
> >
> >  *Regards*
> >
> > *Senthamilarasi. M*
> >
> > ​
>
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#57401):
> https://lists.yoctoproject.org/g/yocto/message/57401
> > Mute This Topic: https://lists.yoctoproject.org/mt/92041991/3617179
> > Group Owner: yocto+owner@lists.yoctoproject.org
> > Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
> alexandre.belloni@bootlin.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
>
>
> --
> Alexandre Belloni, co-owner and COO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
>

[-- Attachment #2: Type: text/html, Size: 4332 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [yocto] yocto support
  2022-07-14  4:42     ` Senthamilarasi mathiyan
@ 2022-07-14  4:59       ` Senthamilarasi mathiyan
  2022-07-14  7:29         ` Quentin Schulz
  0 siblings, 1 reply; 7+ messages in thread
From: Senthamilarasi mathiyan @ 2022-07-14  4:59 UTC (permalink / raw)
  To: Alexandre Belloni; +Cc: Yocto-mailing-list

[-- Attachment #1: Type: text/plain, Size: 4921 bytes --]

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@gmail.com> 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.
> Kern
>
> On Wed, 29 Jun, 2022, 1:37 pm Alexandre Belloni, <
> alexandre.belloni@bootlin.com> 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 : custom_image.bb =( This recipes should have
>> > core_image_minimal.bb + my specific changes)
>> >
>> >  When i build bitbake custom_image.bb,  it should  build  with
>> > core_image_minimal.bb + 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
>> custom_image.bb, it is too late to introduce any kernel change.
>>
>> > Kindly share your suggestions.
>> >
>> >  *Regards*
>> >
>> > *Senthamilarasi. M*
>> >
>> > ​
>>
>> >
>> > -=-=-=-=-=-=-=-=-=-=-=-
>> > Links: You receive all messages sent to this group.
>> > View/Reply Online (#57401):
>> https://lists.yoctoproject.org/g/yocto/message/57401
>> > Mute This Topic: https://lists.yoctoproject.org/mt/92041991/3617179
>> > Group Owner: yocto+owner@lists.yoctoproject.org
>> > Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
>> alexandre.belloni@bootlin.com]
>> > -=-=-=-=-=-=-=-=-=-=-=-
>> >
>>
>>
>> --
>> Alexandre Belloni, co-owner and COO, Bootlin
>> Embedded Linux and Kernel engineering
>> https://bootlin.com
>>
>

[-- Attachment #2: Type: text/html, Size: 13475 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [yocto] yocto support
  2022-07-14  4:59       ` Senthamilarasi mathiyan
@ 2022-07-14  7:29         ` Quentin Schulz
  0 siblings, 0 replies; 7+ messages in thread
From: Quentin Schulz @ 2022-07-14  7:29 UTC (permalink / raw)
  To: Senthamilarasi mathiyan, Alexandre Belloni; +Cc: Yocto-mailing-list

Hi Senthamilarasi.M,

On 7/14/22 06:59, Senthamilarasi mathiyan wrote:
> 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?
> 

It is not possible to modify a recipe from another recipe. Meaning you 
cannot decide which config file to use for the kernel from the image recipe.

You have however two options:
  - only include this configuration file for a given machine (you 
therefore need a new machine). This makes sense if the actual target HW 
is different,
  - only include this configuration file for a given distro (you 
therefore need a new distro file). This makes sense if the actual target 
HW is the same for all configuration file of your kernel, just that they 
differ in terms of "policy".

If you're trying to build "a debug image", it is most likely a new 
distro you're after.

However, there could be a way to still do this with images and that is 
with the use of kernel modules. The plan would be to *always* build 
GCOV, DEBUG_FS and GCOV_KERNEL as modules (if even possible?). Yocto 
actually splits kernel modules in their own packages. Therefore, you 
could have the default configuration for your kernel used in all images, 
but have your special coverage image include also 
kernel-module-gcov/debug-fs/gcov-kernel/etc.. packages and 
modprobe/insmod them at boot when needed.

Cheers,
Quentin


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Yocto support
@ 2020-07-22  2:10 JH
  0 siblings, 0 replies; 7+ messages in thread
From: JH @ 2020-07-22  2:10 UTC (permalink / raw)
  To: Yocto discussion list

Hi,

Does Flextronics https://flex.com support Yocto or not?

Thank you.

Kind regards.

-- 
"A man can fail many times, but he isn't a failure until he begins to
blame somebody else."
-- John Burroughs

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-07-14  7:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <AM9PR10MB4403B8BF23EC7571D7F2E5C7ACB89@AM9PR10MB4403.EURPRD10.PROD.OUTLOOK.COM>
2022-06-28 11:51 ` yocto support Senthamilarasi mathiyan
2022-06-28 12:34   ` [yocto] " Alexander Kanavin
2022-06-29  4:23     ` Senthamilarasi mathiyan
     [not found]   ` <YrwISJ1PCeqQzu6I@mail.local>
2022-07-14  4:42     ` Senthamilarasi mathiyan
2022-07-14  4:59       ` Senthamilarasi mathiyan
2022-07-14  7:29         ` Quentin Schulz
2020-07-22  2:10 Yocto support JH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.