public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] What is the correct way to configure SPL options?
@ 2012-05-17  0:13 Charles Manning
  2012-05-17 18:48 ` Tom Rini
  0 siblings, 1 reply; 7+ messages in thread
From: Charles Manning @ 2012-05-17  0:13 UTC (permalink / raw)
  To: u-boot

Hi All

My understanding of the way SPL is intended to be configured is:

(a) You have one config file for both SPL and u-boot.
(b) SPL features are selected via SPL-specific options.

I have a need to build SPL with MMC/FAT support, but I don't want
u-boot to have MMC/FAT support.

I do however see that quite a few SPL feature selections don't use SPL
config definitions though which would seem to violate (b) above.

eg.drivers/mmc/Makefile contains
COBJS-$(CONFIG_GENERIC_MMC) += mmc.o

It seems to me there are three ways to address this:

A) Change all those Makefiles to something like:

ifdef CONFIG_SPL_BUILD
COBJS-$(CONFIG_SPL_MMC_SUPPORT) += mmc.o
else
COBJS-$(CONFIG_GENERIC_MMC) += mmc.o
endif


B) Modifying the config file with something like

#ifdef CONFIG_SPL_BUILD
#define CONFIG_GENERIC_MMC
...
#endif

C) Separate config files. One for SPL and the other for u-boot.

Which is the best way to do this?

Thanks

Charles

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

end of thread, other threads:[~2012-05-18 16:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-17  0:13 [U-Boot] What is the correct way to configure SPL options? Charles Manning
2012-05-17 18:48 ` Tom Rini
2012-05-17 20:22   ` Scott Wood
2012-05-17 20:47     ` Tom Rini
2012-05-17 20:58       ` Scott Wood
2012-05-17 21:23         ` Charles Manning
2012-05-18 16:09           ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox