* How to use *.bb file to select different kernel config/feature?
@ 2017-03-21 7:15 Richard Zhang
2017-03-21 12:33 ` Bruce Ashfield
0 siblings, 1 reply; 3+ messages in thread
From: Richard Zhang @ 2017-03-21 7:15 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 451 bytes --]
Hi all
I want to use one linux-kernel-myown.bb file to select different config for several boxes.
I think when I give MACHINE to box1\box2\box3, the kernel config and features select can be done.
Is it correct :
when use MACHINE=box1\box2\box3 and so on:
KERNEL_FEATURES_append_box1=" cfg/box1.scc"
KERNEL_CONFIG_box1=" cfg/box1_defconfig.cfg"
this instruction could work?or any suggestion.
Regards
Richard
[-- Attachment #2: Type: text/html, Size: 1068 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to use *.bb file to select different kernel config/feature?
2017-03-21 7:15 How to use *.bb file to select different kernel config/feature? Richard Zhang
@ 2017-03-21 12:33 ` Bruce Ashfield
2017-03-22 0:36 ` Richard Zhang
0 siblings, 1 reply; 3+ messages in thread
From: Bruce Ashfield @ 2017-03-21 12:33 UTC (permalink / raw)
To: Richard Zhang; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 1354 bytes --]
On Tue, Mar 21, 2017 at 3:15 AM, Richard Zhang <richard.zhang@pica8.com>
wrote:
> Hi all
>
>
> I want to use one linux-kernel-myown.bb file to select different config
> for several boxes.
>
> I think when I give MACHINE to box1\box2\box3, the kernel config and
> features select can be done.
>
>
> Is it correct :
>
>
> when use MACHINE=box1\box2\box3 and so on:
>
>
> KERNEL_FEATURES_append_box1=" cfg/box1.scc"
>
These are variables like any other in bitbake. They can take a variety of
overrides, one of which is the machine
name. So yes, you could append a kernel feature only for your $MACHINE with
the line above.
But you must be using a kernel recipe that inherits kernel-yocto for the
feature to be processed.
> KERNEL_CONFIG_box1=" cfg/box1_defconfig.cfg"
>
Assuming KERNEL_CONFIG is a valid variable in your layers, this would also
work. But if you are using
configuration fragments and kernel-yocto, that isn't a variable that is
used.
Bruce
>
>
> this instruction could work?or any suggestion.
>
>
>
> Regards
>
> Richard
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
[-- Attachment #2: Type: text/html, Size: 3124 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to use *.bb file to select different kernel config/feature?
2017-03-21 12:33 ` Bruce Ashfield
@ 2017-03-22 0:36 ` Richard Zhang
0 siblings, 0 replies; 3+ messages in thread
From: Richard Zhang @ 2017-03-22 0:36 UTC (permalink / raw)
To: Bruce Ashfield; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 1738 bytes --]
So, maybe I should take a KERNEL_CONFIG into my own kernel recipe.
Thanks
Richard
________________________________
From: Bruce Ashfield <bruce.ashfield@gmail.com>
Sent: Tuesday, March 21, 2017 8:33:09 PM
To: Richard Zhang
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] How to use *.bb file to select different kernel config/feature?
On Tue, Mar 21, 2017 at 3:15 AM, Richard Zhang <richard.zhang@pica8.com<mailto:richard.zhang@pica8.com>> wrote:
Hi all
I want to use one linux-kernel-myown.bb<http://linux-kernel-myown.bb> file to select different config for several boxes.
I think when I give MACHINE to box1\box2\box3, the kernel config and features select can be done.
Is it correct :
when use MACHINE=box1\box2\box3 and so on:
KERNEL_FEATURES_append_box1=" cfg/box1.scc"
These are variables like any other in bitbake. They can take a variety of overrides, one of which is the machine
name. So yes, you could append a kernel feature only for your $MACHINE with the line above.
But you must be using a kernel recipe that inherits kernel-yocto for the feature to be processed.
KERNEL_CONFIG_box1=" cfg/box1_defconfig.cfg"
Assuming KERNEL_CONFIG is a valid variable in your layers, this would also work. But if you are using
configuration fragments and kernel-yocto, that isn't a variable that is used.
Bruce
this instruction could work?or any suggestion.
Regards
Richard
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>
https://lists.yoctoproject.org/listinfo/yocto
--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
[-- Attachment #2: Type: text/html, Size: 4203 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-03-22 1:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-21 7:15 How to use *.bb file to select different kernel config/feature? Richard Zhang
2017-03-21 12:33 ` Bruce Ashfield
2017-03-22 0:36 ` Richard Zhang
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.