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@yoctoproject.org

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

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.