All of lore.kernel.org
 help / color / mirror / Atom feed
* RFC; Building multiple u-boot images for a single board
@ 2010-02-26 11:37 Ulf Samuelsson
  2010-02-26 12:16 ` Marcin Juszkiewicz
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Ulf Samuelsson @ 2010-02-26 11:37 UTC (permalink / raw)
  To: openembedded-devel

If you want to support multiple boot memories, you have to
have multiple boards in the conf/machine directory

I currently testing a change to at91bootstrap, where a defconfig
is not provided by openembedded.
Instead you provide a list of defconfig's in your machine description:

I.E: in conf/machien/at91sam9g45ek.conf you have:

AT91BOOTSTRAP_BOARD = "at91sam9g45df at91sam9g45ek at91sam9g45nf"

when at91bootstrap is built it will loop through all the boards.
and build three versions.

I think it would make sense to do the same for u-boot,
so that you can build u-boot for several configurations.

This change would happen from u-boot-2009.11 an onwards.

In your machine conf you would supply:
UBOOT_MACHINES = "at91sam9g45ekes_nandflash at91sam9g45ekes_dataflash"

A loop goes through the list
and runs make on each element in the list.

make at91sam9g45ekes_nandflash_config
make
make at91sam9g45ekes_dataflash_config
make

if UBOOT_MACHINES is not set, then a single build is done using
UBOOT_MACHINE as usual.

This will allow u_boot to be built for every boot configuration
without having to add a lot of files.

-- 
Best Regards
Ulf Samuelsson




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

end of thread, other threads:[~2010-02-26 19:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-26 11:37 RFC; Building multiple u-boot images for a single board Ulf Samuelsson
2010-02-26 12:16 ` Marcin Juszkiewicz
2010-02-26 12:20 ` Frans Meulenbroeks
2010-02-26 12:57 ` Koen Kooi
2010-02-26 18:45   ` Tom Rini
2010-02-26 18:53     ` Denys Dmytriyenko
2010-02-26 19:27     ` Koen Kooi
2010-02-26 19:45       ` Tom Rini

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.