[U-Boot] [PATCH 6/9] tegra: enable SPL build for seaboard

Allen Martin amartin at nvidia.com
Sat May 19 00:24:40 CEST 2012


On Mon, May 14, 2012 at 10:06:40PM -0700, Stephen Warren wrote:
> On 05/10/2012 01:02 AM, Allen Martin wrote:
> > Signed-off-by: Allen Martin <amartin at nvidia.com>
> 
> > diff --git a/boards.cfg b/boards.cfg
> 
> > -seaboard                     arm         armv7       seaboard            nvidia         tegra2
> > +seaboard                     arm         armv7:arm720t seaboard          nvidia         tegra2
> 
> Hmmm. We'll have to duplicate this change for all boards. Is there some
> way to do set up the SPL CPU for all Tegra boards so we don't have to do
> that?

I would have to think what that would look like.  The boards.cfg file
has one entry per board and doesn't really have any place to store
information on groups of boards or any type of per vendor or per
architecture settings.  This decision on the CPU needs to be made at
mkconfig time or else I wouldn't have touched boards.cfg format at all
and stuck it in some tegra specific config file or Makefile.  I can't
see any way to do what you're asking without making the change even
more invasive.

> > diff --git a/include/configs/seaboard.h b/include/configs/seaboard.h
> 
> > +#ifndef CONFIG_SPL_BUILD
> 
> And every Tegra board's config header will have to ifdef a bunch of
> stuff out for SPL.

I'll take a pass at trying to pull some of that out into a common
header. 


> Perhaps we can just create a new tegra_spl board for the SPL rather than
> having an SPL variant for each board. Still, I don't know how we'd
> represent the UART differences if we did that though.

I tossed out that idea as part of the discussion about using a
separate toolchain for the SPL, but Wolfgang shot it down:

http://lists.denx.de/pipermail/u-boot/2012-April/122248.html

-Allen
-- 
nvpublic


More information about the U-Boot mailing list