[U-Boot] [PATCH v2] SPL: Makefile: Build a separate autoconf.mk for SPL
Tom Rini
trini at ti.com
Fri Jun 7 20:15:51 CEST 2013
On Tue, May 28, 2013 at 06:51:47PM -0500, Joel A Fernandes wrote:
> SPL defines CONFIG_SPL_BUILD but this does not percolate to the
> autoconf.mk Makefile. As a result the build breaks when
> CONFIG_SPL_BUILD is used in the board-specific include header file.
> With this, there is a possibility of having a CONFIG option defined in
> the header file but not defined in the Makefile causing all kinds of
> build failure and problems.
>
> It also messes things for up, for example, when one might want to
> undefine options to keep the SPL small and doesn't want to be stuck
> with the CONFIG options used for U-boot. Lastly, this also avoids
> defining special CONFIG_SPL_ variables for cases where some options
> are required in U-boot but not in SPL.
>
> We add a spl-autoconf.mk rule that is generated for SPL with the
> CONFIG_SPL_BUILD flag and conditionally include it for SPL builds.
>
> v2 changes:
> Fixed issue where builds in a different directory were failing.
> Suggested-by: Muddegowda, Deepak <x0171695 at ti.com> . Thanks Deepak!
> Reported-by: Tom Rini <trini at ti.com>
>
> Signed-off-by: Joel A Fernandes <joelagnel at ti.com>
> Cc: Muddegowda, Deepak <x0171695 at ti.com>
> Cc: Tom Rini <trini at ti.com>
This breaks building of am335x_evm_usbspl :( Please fix, thanks!
--
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/20130607/8529cad8/attachment.pgp>
More information about the U-Boot
mailing list