All of lore.kernel.org
 help / color / mirror / Atom feed
* One kernel tree, two BSP layers, two defconfigs. How to pickup the right one based on MACHINE value?
@ 2015-11-30 19:25 Daniel.
  2015-11-30 23:29 ` Saul Wold
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel. @ 2015-11-30 19:25 UTC (permalink / raw)
  To: yocto

Hi,

I have one kernel tree where I keep all my modules in-tree. Inside
kernel I have two FOO_defconfig and BAR_defconfig which are
configurations for FOO-board and BAR-board. On Yocto I have
core-layer, FOO-bsp layer and BAR-bsp layer. At core-layer I have
linux-custom.bb file which has the URI for kernel tree with a dummy
defconfig. At FOO-bsp and BAR-bsp a have a .bbappend that adds a
folder with the right defconfig for each board.

My doubt is: I have two .bbappends, on two distinct layers being
applied at same time? Both layers are pointed at
build/conf/bblayers.conf.

How can I have sure to pick up the right defconfig at build time?

I've tried to delete core-layer and have two kernel recipes with
distinct names, but Yocto complains about two recipes being selected
at same time for build (because of virtual/kernel feature or something
alike). So I want to keep one kernel recipe and select the right
defconfig based on MACHINE value.

Both defconfig are present on arch/arm/configs. Can I overwrite
do_config()? Is that safe? About the .bbappends: Should be two
.bbappends on same .bb file be avoided?


Regards,
- dhs
-- 
"Do or do not. There is no try"
  Yoda Master


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

* Re: One kernel tree, two BSP layers, two defconfigs. How to pickup the right one based on MACHINE value?
  2015-11-30 19:25 One kernel tree, two BSP layers, two defconfigs. How to pickup the right one based on MACHINE value? Daniel.
@ 2015-11-30 23:29 ` Saul Wold
  2015-12-01 13:27   ` Daniel.
  0 siblings, 1 reply; 7+ messages in thread
From: Saul Wold @ 2015-11-30 23:29 UTC (permalink / raw)
  To: Daniel., yocto

On Mon, 2015-11-30 at 17:25 -0200, Daniel. wrote:
> Hi,
> 
> I have one kernel tree where I keep all my modules in-tree. Inside
> kernel I have two FOO_defconfig and BAR_defconfig which are
> configurations for FOO-board and BAR-board. On Yocto I have
> core-layer, FOO-bsp layer and BAR-bsp layer. At core-layer I have
> linux-custom.bb file which has the URI for kernel tree with a dummy
> defconfig. At FOO-bsp and BAR-bsp a have a .bbappend that adds a
> folder with the right defconfig for each board.
> 
> My doubt is: I have two .bbappends, on two distinct layers being
> applied at same time? Both layers are pointed at
> build/conf/bblayers.conf.
> 
So you are including both your BSP Layers in the bblayers, that will
probably cause problems based on your description above.

Another option is to look at using overrides and have 1 layer that
supports both boards if they are similar and share other items.

> How can I have sure to pick up the right defconfig at build time?
> 
> I've tried to delete core-layer and have two kernel recipes with
> distinct names, but Yocto complains about two recipes being selected
> at same time for build (because of virtual/kernel feature or
> something
> alike). So I want to keep one kernel recipe and select the right
> defconfig based on MACHINE value.
> 
You can use PREFERRED_PROVIDER_virtual/kernel to have multiple
alternate kernel present and set it in your <machine>.conf to select
the kernel you want.

If your kernel recipe does not inherit kernel.bbclass you will need to
set PROVIDES

You should also be sure to set COMPATIBLE_MACHINE for each machine

> Both defconfig are present on arch/arm/configs. Can I overwrite
> do_config()? Is that safe? About the .bbappends: Should be two
> .bbappends on same .bb file be avoided?
> 
You can use a do_config_prepend() to deal with moving the correct
defconfig.

Honestly there are many ways you can make this work and even more to
make is fail!

Sau!

> 
> Regards,
> - dhs
> -- 
> "Do or do not. There is no try"
>   Yoda Master


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

* Re: One kernel tree, two BSP layers, two defconfigs. How to pickup the right one based on MACHINE value?
  2015-11-30 23:29 ` Saul Wold
@ 2015-12-01 13:27   ` Daniel.
  2015-12-01 19:30     ` Paul Eggleton
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel. @ 2015-12-01 13:27 UTC (permalink / raw)
  To: Saul Wold; +Cc: yocto

Hi Saul, thanks for your reply

2015-11-30 21:29 GMT-02:00 Saul Wold <saul.wold@intel.com>:
> On Mon, 2015-11-30 at 17:25 -0200, Daniel. wrote:
>> Hi,
>>
>> I have one kernel tree where I keep all my modules in-tree. Inside
>> kernel I have two FOO_defconfig and BAR_defconfig which are
>> configurations for FOO-board and BAR-board. On Yocto I have
>> core-layer, FOO-bsp layer and BAR-bsp layer. At core-layer I have
>> linux-custom.bb file which has the URI for kernel tree with a dummy
>> defconfig. At FOO-bsp and BAR-bsp a have a .bbappend that adds a
>> folder with the right defconfig for each board.
>>
>> My doubt is: I have two .bbappends, on two distinct layers being
>> applied at same time? Both layers are pointed at
>> build/conf/bblayers.conf.
>>
> So you are including both your BSP Layers in the bblayers, that will
> probably cause problems based on your description above.
>
> Another option is to look at using overrides and have 1 layer that
> supports both boards if they are similar and share other items.
>
>> How can I have sure to pick up the right defconfig at build time?
>>
>> I've tried to delete core-layer and have two kernel recipes with
>> distinct names, but Yocto complains about two recipes being selected
>> at same time for build (because of virtual/kernel feature or
>> something
>> alike). So I want to keep one kernel recipe and select the right
>> defconfig based on MACHINE value.
>>
> You can use PREFERRED_PROVIDER_virtual/kernel to have multiple
> alternate kernel present and set it in your <machine>.conf to select
> the kernel you want.
>
> If your kernel recipe does not inherit kernel.bbclass you will need to
> set PROVIDES
>
> You should also be sure to set COMPATIBLE_MACHINE for each machine
>
>> Both defconfig are present on arch/arm/configs. Can I overwrite
>> do_config()? Is that safe? About the .bbappends: Should be two
>> .bbappends on same .bb file be avoided?
>>
> You can use a do_config_prepend() to deal with moving the correct
> defconfig.
Yeah I'm doing that. As you suggested I removed the .bbappend files and
have one recipe that support both machines, the config prepend looks
like this:

do_configure_prepend() {
    case "${MACHINE}" in
        enlace-imx6)
        bbnote "Using csi_enlace_imx6_defconfig"
        cp -v ${S}/arch/arm/configs/csi_enlace_imx6_defconfig ${S}/defconfig
        ;;
    pharosserver-imx6)
            bbnote "Using csi_pharosserver_imx6_defconfig"
        cp -v ${S}/arch/arm/configs/csi_pharosserver_imx6_defconfig
${S}/defconfig
        ;;
    esac
}

Thanks again for the help,
>
> Honestly there are many ways you can make this work and even more to
> make is fail!
>
> Sau!
>
>>
>> Regards,
>> - dhs
>> --
>> "Do or do not. There is no try"
>>   Yoda Master

BR,
- dhs

-- 
"Do or do not. There is no try"
  Yoda Master


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

* Re: One kernel tree, two BSP layers, two defconfigs. How to pickup the right one based on MACHINE value?
  2015-12-01 13:27   ` Daniel.
@ 2015-12-01 19:30     ` Paul Eggleton
  2015-12-01 19:48       ` Daniel.
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Eggleton @ 2015-12-01 19:30 UTC (permalink / raw)
  To: Daniel.; +Cc: yocto, Saul Wold

On Tue, 01 Dec 2015 11:27:19 Daniel. wrote:
> Hi Saul, thanks for your reply
> 
> 2015-11-30 21:29 GMT-02:00 Saul Wold <saul.wold@intel.com>:
> > On Mon, 2015-11-30 at 17:25 -0200, Daniel. wrote:
> >> Hi,
> >> 
> >> I have one kernel tree where I keep all my modules in-tree. Inside
> >> kernel I have two FOO_defconfig and BAR_defconfig which are
> >> configurations for FOO-board and BAR-board. On Yocto I have
> >> core-layer, FOO-bsp layer and BAR-bsp layer. At core-layer I have
> >> linux-custom.bb file which has the URI for kernel tree with a dummy
> >> defconfig. At FOO-bsp and BAR-bsp a have a .bbappend that adds a
> >> folder with the right defconfig for each board.
> >> 
> >> My doubt is: I have two .bbappends, on two distinct layers being
> >> applied at same time? Both layers are pointed at
> >> build/conf/bblayers.conf.
> > 
> > So you are including both your BSP Layers in the bblayers, that will
> > probably cause problems based on your description above.
> > 
> > Another option is to look at using overrides and have 1 layer that
> > supports both boards if they are similar and share other items.
> > 
> >> How can I have sure to pick up the right defconfig at build time?
> >> 
> >> I've tried to delete core-layer and have two kernel recipes with
> >> distinct names, but Yocto complains about two recipes being selected
> >> at same time for build (because of virtual/kernel feature or
> >> something
> >> alike). So I want to keep one kernel recipe and select the right
> >> defconfig based on MACHINE value.
> > 
> > You can use PREFERRED_PROVIDER_virtual/kernel to have multiple
> > alternate kernel present and set it in your <machine>.conf to select
> > the kernel you want.
> > 
> > If your kernel recipe does not inherit kernel.bbclass you will need to
> > set PROVIDES
> > 
> > You should also be sure to set COMPATIBLE_MACHINE for each machine
> > 
> >> Both defconfig are present on arch/arm/configs. Can I overwrite
> >> do_config()? Is that safe? About the .bbappends: Should be two
> >> .bbappends on same .bb file be avoided?
> > 
> > You can use a do_config_prepend() to deal with moving the correct
> > defconfig.
> 
> Yeah I'm doing that. As you suggested I removed the .bbappend files and
> have one recipe that support both machines, the config prepend looks
> like this:
> 
> do_configure_prepend() {
>     case "${MACHINE}" in
>         enlace-imx6)
>         bbnote "Using csi_enlace_imx6_defconfig"
>         cp -v ${S}/arch/arm/configs/csi_enlace_imx6_defconfig ${S}/defconfig
> ;;
>     pharosserver-imx6)
>             bbnote "Using csi_pharosserver_imx6_defconfig"
>         cp -v ${S}/arch/arm/configs/csi_pharosserver_imx6_defconfig
> ${S}/defconfig
>         ;;
>     esac
> }

We do already have functionality that avoids the need for custom scripting 
like this.

Unless you really need the defconfigs in-tree, the typical way to achieve this 
is to add "file://defconfig" to SRC_URI, then have defconfig files for each of the 
machines under subdirectories named the same as the machine. So your directory 
structure would look like this:

.../recipes-linux/linux-something/linux-something_versionnumber.bb
.../recipes-linux/linux-something/linux-something/enlace-imx6/defconfig
.../recipes-linux/linux-something/linux-something/pharosserver-imx6/defconfig

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: One kernel tree, two BSP layers, two defconfigs. How to pickup the right one based on MACHINE value?
  2015-12-01 19:30     ` Paul Eggleton
@ 2015-12-01 19:48       ` Daniel.
  2015-12-01 19:59         ` Paul Eggleton
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel. @ 2015-12-01 19:48 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto, Saul Wold

Hmmm that seems to fit as a glove to me, is that possible on Daisy?

Regards,
- dhs

2015-12-01 17:30 GMT-02:00 Paul Eggleton <paul.eggleton@linux.intel.com>:
> On Tue, 01 Dec 2015 11:27:19 Daniel. wrote:
>> Hi Saul, thanks for your reply
>>
>> 2015-11-30 21:29 GMT-02:00 Saul Wold <saul.wold@intel.com>:
>> > On Mon, 2015-11-30 at 17:25 -0200, Daniel. wrote:
>> >> Hi,
>> >>
>> >> I have one kernel tree where I keep all my modules in-tree. Inside
>> >> kernel I have two FOO_defconfig and BAR_defconfig which are
>> >> configurations for FOO-board and BAR-board. On Yocto I have
>> >> core-layer, FOO-bsp layer and BAR-bsp layer. At core-layer I have
>> >> linux-custom.bb file which has the URI for kernel tree with a dummy
>> >> defconfig. At FOO-bsp and BAR-bsp a have a .bbappend that adds a
>> >> folder with the right defconfig for each board.
>> >>
>> >> My doubt is: I have two .bbappends, on two distinct layers being
>> >> applied at same time? Both layers are pointed at
>> >> build/conf/bblayers.conf.
>> >
>> > So you are including both your BSP Layers in the bblayers, that will
>> > probably cause problems based on your description above.
>> >
>> > Another option is to look at using overrides and have 1 layer that
>> > supports both boards if they are similar and share other items.
>> >
>> >> How can I have sure to pick up the right defconfig at build time?
>> >>
>> >> I've tried to delete core-layer and have two kernel recipes with
>> >> distinct names, but Yocto complains about two recipes being selected
>> >> at same time for build (because of virtual/kernel feature or
>> >> something
>> >> alike). So I want to keep one kernel recipe and select the right
>> >> defconfig based on MACHINE value.
>> >
>> > You can use PREFERRED_PROVIDER_virtual/kernel to have multiple
>> > alternate kernel present and set it in your <machine>.conf to select
>> > the kernel you want.
>> >
>> > If your kernel recipe does not inherit kernel.bbclass you will need to
>> > set PROVIDES
>> >
>> > You should also be sure to set COMPATIBLE_MACHINE for each machine
>> >
>> >> Both defconfig are present on arch/arm/configs. Can I overwrite
>> >> do_config()? Is that safe? About the .bbappends: Should be two
>> >> .bbappends on same .bb file be avoided?
>> >
>> > You can use a do_config_prepend() to deal with moving the correct
>> > defconfig.
>>
>> Yeah I'm doing that. As you suggested I removed the .bbappend files and
>> have one recipe that support both machines, the config prepend looks
>> like this:
>>
>> do_configure_prepend() {
>>     case "${MACHINE}" in
>>         enlace-imx6)
>>         bbnote "Using csi_enlace_imx6_defconfig"
>>         cp -v ${S}/arch/arm/configs/csi_enlace_imx6_defconfig ${S}/defconfig
>> ;;
>>     pharosserver-imx6)
>>             bbnote "Using csi_pharosserver_imx6_defconfig"
>>         cp -v ${S}/arch/arm/configs/csi_pharosserver_imx6_defconfig
>> ${S}/defconfig
>>         ;;
>>     esac
>> }
>
> We do already have functionality that avoids the need for custom scripting
> like this.
>
> Unless you really need the defconfigs in-tree, the typical way to achieve this
> is to add "file://defconfig" to SRC_URI, then have defconfig files for each of the
> machines under subdirectories named the same as the machine. So your directory
> structure would look like this:
>
> .../recipes-linux/linux-something/linux-something_versionnumber.bb
> .../recipes-linux/linux-something/linux-something/enlace-imx6/defconfig
> .../recipes-linux/linux-something/linux-something/pharosserver-imx6/defconfig
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre



-- 
"Do or do not. There is no try"
  Yoda Master


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

* Re: One kernel tree, two BSP layers, two defconfigs. How to pickup the right one based on MACHINE value?
  2015-12-01 19:48       ` Daniel.
@ 2015-12-01 19:59         ` Paul Eggleton
  2015-12-01 20:17           ` Daniel.
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Eggleton @ 2015-12-01 19:59 UTC (permalink / raw)
  To: Daniel.; +Cc: yocto, Saul Wold

Yes that's been possible for quite a long time now (possibly going back to OE-
classic).

Cheers,
Paul

On Tue, 01 Dec 2015 17:48:26 Daniel. wrote:
> Hmmm that seems to fit as a glove to me, is that possible on Daisy?
> 
> Regards,
> - dhs
> 
> 2015-12-01 17:30 GMT-02:00 Paul Eggleton <paul.eggleton@linux.intel.com>:
> > On Tue, 01 Dec 2015 11:27:19 Daniel. wrote:
> >> Hi Saul, thanks for your reply
> >> 
> >> 2015-11-30 21:29 GMT-02:00 Saul Wold <saul.wold@intel.com>:
> >> > On Mon, 2015-11-30 at 17:25 -0200, Daniel. wrote:
> >> >> Hi,
> >> >> 
> >> >> I have one kernel tree where I keep all my modules in-tree. Inside
> >> >> kernel I have two FOO_defconfig and BAR_defconfig which are
> >> >> configurations for FOO-board and BAR-board. On Yocto I have
> >> >> core-layer, FOO-bsp layer and BAR-bsp layer. At core-layer I have
> >> >> linux-custom.bb file which has the URI for kernel tree with a dummy
> >> >> defconfig. At FOO-bsp and BAR-bsp a have a .bbappend that adds a
> >> >> folder with the right defconfig for each board.
> >> >> 
> >> >> My doubt is: I have two .bbappends, on two distinct layers being
> >> >> applied at same time? Both layers are pointed at
> >> >> build/conf/bblayers.conf.
> >> > 
> >> > So you are including both your BSP Layers in the bblayers, that will
> >> > probably cause problems based on your description above.
> >> > 
> >> > Another option is to look at using overrides and have 1 layer that
> >> > supports both boards if they are similar and share other items.
> >> > 
> >> >> How can I have sure to pick up the right defconfig at build time?
> >> >> 
> >> >> I've tried to delete core-layer and have two kernel recipes with
> >> >> distinct names, but Yocto complains about two recipes being selected
> >> >> at same time for build (because of virtual/kernel feature or
> >> >> something
> >> >> alike). So I want to keep one kernel recipe and select the right
> >> >> defconfig based on MACHINE value.
> >> > 
> >> > You can use PREFERRED_PROVIDER_virtual/kernel to have multiple
> >> > alternate kernel present and set it in your <machine>.conf to select
> >> > the kernel you want.
> >> > 
> >> > If your kernel recipe does not inherit kernel.bbclass you will need to
> >> > set PROVIDES
> >> > 
> >> > You should also be sure to set COMPATIBLE_MACHINE for each machine
> >> > 
> >> >> Both defconfig are present on arch/arm/configs. Can I overwrite
> >> >> do_config()? Is that safe? About the .bbappends: Should be two
> >> >> .bbappends on same .bb file be avoided?
> >> > 
> >> > You can use a do_config_prepend() to deal with moving the correct
> >> > defconfig.
> >> 
> >> Yeah I'm doing that. As you suggested I removed the .bbappend files and
> >> have one recipe that support both machines, the config prepend looks
> >> like this:
> >> 
> >> do_configure_prepend() {
> >> 
> >>     case "${MACHINE}" in
> >>     
> >>         enlace-imx6)
> >>         bbnote "Using csi_enlace_imx6_defconfig"
> >>         cp -v ${S}/arch/arm/configs/csi_enlace_imx6_defconfig
> >>         ${S}/defconfig
> >> 
> >> ;;
> >> 
> >>     pharosserver-imx6)
> >>     
> >>             bbnote "Using csi_pharosserver_imx6_defconfig"
> >>         
> >>         cp -v ${S}/arch/arm/configs/csi_pharosserver_imx6_defconfig
> >> 
> >> ${S}/defconfig
> >> 
> >>         ;;
> >>     
> >>     esac
> >> 
> >> }
> > 
> > We do already have functionality that avoids the need for custom scripting
> > like this.
> > 
> > Unless you really need the defconfigs in-tree, the typical way to achieve
> > this is to add "file://defconfig" to SRC_URI, then have defconfig files
> > for each of the machines under subdirectories named the same as the
> > machine. So your directory structure would look like this:
> > 
> > .../recipes-linux/linux-something/linux-something_versionnumber.bb
> > .../recipes-linux/linux-something/linux-something/enlace-imx6/defconfig
> > .../recipes-linux/linux-something/linux-something/pharosserver-imx6/defcon
> > fig
> > 
> > Cheers,
> > Paul
> > 
> > --
> > 
> > Paul Eggleton
> > Intel Open Source Technology Centre

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: One kernel tree, two BSP layers, two defconfigs. How to pickup the right one based on MACHINE value?
  2015-12-01 19:59         ` Paul Eggleton
@ 2015-12-01 20:17           ` Daniel.
  0 siblings, 0 replies; 7+ messages in thread
From: Daniel. @ 2015-12-01 20:17 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto, Saul Wold

I'll use that so, thank you very much Paul for the tip! :)

Regards,
-

2015-12-01 17:59 GMT-02:00 Paul Eggleton <paul.eggleton@linux.intel.com>:
> Yes that's been possible for quite a long time now (possibly going back to OE-
> classic).
>
> Cheers,
> Paul
>
> On Tue, 01 Dec 2015 17:48:26 Daniel. wrote:
>> Hmmm that seems to fit as a glove to me, is that possible on Daisy?
>>
>> Regards,
>> - dhs
>>
>> 2015-12-01 17:30 GMT-02:00 Paul Eggleton <paul.eggleton@linux.intel.com>:
>> > On Tue, 01 Dec 2015 11:27:19 Daniel. wrote:
>> >> Hi Saul, thanks for your reply
>> >>
>> >> 2015-11-30 21:29 GMT-02:00 Saul Wold <saul.wold@intel.com>:
>> >> > On Mon, 2015-11-30 at 17:25 -0200, Daniel. wrote:
>> >> >> Hi,
>> >> >>
>> >> >> I have one kernel tree where I keep all my modules in-tree. Inside
>> >> >> kernel I have two FOO_defconfig and BAR_defconfig which are
>> >> >> configurations for FOO-board and BAR-board. On Yocto I have
>> >> >> core-layer, FOO-bsp layer and BAR-bsp layer. At core-layer I have
>> >> >> linux-custom.bb file which has the URI for kernel tree with a dummy
>> >> >> defconfig. At FOO-bsp and BAR-bsp a have a .bbappend that adds a
>> >> >> folder with the right defconfig for each board.
>> >> >>
>> >> >> My doubt is: I have two .bbappends, on two distinct layers being
>> >> >> applied at same time? Both layers are pointed at
>> >> >> build/conf/bblayers.conf.
>> >> >
>> >> > So you are including both your BSP Layers in the bblayers, that will
>> >> > probably cause problems based on your description above.
>> >> >
>> >> > Another option is to look at using overrides and have 1 layer that
>> >> > supports both boards if they are similar and share other items.
>> >> >
>> >> >> How can I have sure to pick up the right defconfig at build time?
>> >> >>
>> >> >> I've tried to delete core-layer and have two kernel recipes with
>> >> >> distinct names, but Yocto complains about two recipes being selected
>> >> >> at same time for build (because of virtual/kernel feature or
>> >> >> something
>> >> >> alike). So I want to keep one kernel recipe and select the right
>> >> >> defconfig based on MACHINE value.
>> >> >
>> >> > You can use PREFERRED_PROVIDER_virtual/kernel to have multiple
>> >> > alternate kernel present and set it in your <machine>.conf to select
>> >> > the kernel you want.
>> >> >
>> >> > If your kernel recipe does not inherit kernel.bbclass you will need to
>> >> > set PROVIDES
>> >> >
>> >> > You should also be sure to set COMPATIBLE_MACHINE for each machine
>> >> >
>> >> >> Both defconfig are present on arch/arm/configs. Can I overwrite
>> >> >> do_config()? Is that safe? About the .bbappends: Should be two
>> >> >> .bbappends on same .bb file be avoided?
>> >> >
>> >> > You can use a do_config_prepend() to deal with moving the correct
>> >> > defconfig.
>> >>
>> >> Yeah I'm doing that. As you suggested I removed the .bbappend files and
>> >> have one recipe that support both machines, the config prepend looks
>> >> like this:
>> >>
>> >> do_configure_prepend() {
>> >>
>> >>     case "${MACHINE}" in
>> >>
>> >>         enlace-imx6)
>> >>         bbnote "Using csi_enlace_imx6_defconfig"
>> >>         cp -v ${S}/arch/arm/configs/csi_enlace_imx6_defconfig
>> >>         ${S}/defconfig
>> >>
>> >> ;;
>> >>
>> >>     pharosserver-imx6)
>> >>
>> >>             bbnote "Using csi_pharosserver_imx6_defconfig"
>> >>
>> >>         cp -v ${S}/arch/arm/configs/csi_pharosserver_imx6_defconfig
>> >>
>> >> ${S}/defconfig
>> >>
>> >>         ;;
>> >>
>> >>     esac
>> >>
>> >> }
>> >
>> > We do already have functionality that avoids the need for custom scripting
>> > like this.
>> >
>> > Unless you really need the defconfigs in-tree, the typical way to achieve
>> > this is to add "file://defconfig" to SRC_URI, then have defconfig files
>> > for each of the machines under subdirectories named the same as the
>> > machine. So your directory structure would look like this:
>> >
>> > .../recipes-linux/linux-something/linux-something_versionnumber.bb
>> > .../recipes-linux/linux-something/linux-something/enlace-imx6/defconfig
>> > .../recipes-linux/linux-something/linux-something/pharosserver-imx6/defcon
>> > fig
>> >
>> > Cheers,
>> > Paul
>> >
>> > --
>> >
>> > Paul Eggleton
>> > Intel Open Source Technology Centre
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre



-- 
"Do or do not. There is no try"
  Yoda Master


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

end of thread, other threads:[~2015-12-01 20:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-30 19:25 One kernel tree, two BSP layers, two defconfigs. How to pickup the right one based on MACHINE value? Daniel.
2015-11-30 23:29 ` Saul Wold
2015-12-01 13:27   ` Daniel.
2015-12-01 19:30     ` Paul Eggleton
2015-12-01 19:48       ` Daniel.
2015-12-01 19:59         ` Paul Eggleton
2015-12-01 20:17           ` Daniel.

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.