[U-Boot] [RFC PATCH 14/17] spl: introduce CONFIG_SPL_TARGET

Tom Rini trini at ti.com
Sat Sep 22 02:12:38 CEST 2012


On Fri, Sep 21, 2012 at 07:01:24PM -0500, Scott Wood wrote:

> Currently it seems that SPLs rely on the user to specify the final target
> on the make command line.  This is a departure from traditional U-Boot practice
> and results in a lack of build coverage in MAKEALL.
> 
> Now boards can specify CONFIG_SPL_TARGET to determine what gets built by default.
> Eventually all SPL boards should specify CONFIG_SPL_TARGET, but for now default
> to at least building the SPL code.
> 
> Signed-off-by: Scott Wood <scottwood at freescale.com>

Note that this is sometimes handled via config.mk fragments:
ifdef CONFIG_SPL_BUILD
ALL-y   += $(OBJTREE)/MLO
else
ALL-y   += $(obj)u-boot.img
endif

Or similar.  I don't know what's better.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120921/57aacce5/attachment.pgp>


More information about the U-Boot mailing list