[U-Boot] [PATCH 1/2] SPL: Makefile: Build a separate autoconf.mk for SPL

Joel A Fernandes agnel.joel at gmail.com
Sat May 18 20:22:53 CEST 2013


Hi Tom,
Sorry for the delay as I've been traveling.

On Friday, May 17, 2013, Tom Rini wrote:

> On Tue, May 07, 2013 at 10:52:54AM -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.
>
> This breaks tegra boards such as ventura and a number of others
> currently, please fix.  Thanks!


 I don't have a tegra. Is this a build or runtime issue? If its build ,
I'll try building some of those targets and let you know. Might be 1 to 2
more days once I get back today.

Regards,
Joel

>


> --
> Tom
>


More information about the U-Boot mailing list