[U-Boot] [PATCH 5/6] spl: Make CONFIG_SPL_BUILD contain more functionality

Zhang Ying-B40530 B40530 at freescale.com
Mon May 27 09:43:06 CEST 2013


So, about this patch, what need I do?


-----Original Message-----
From: Tom Rini [mailto:tom.rini at gmail.com] On Behalf Of Tom Rini
Sent: Saturday, May 25, 2013 3:18 AM
To: Wood Scott-B07421
Cc: u-boot at lists.denx.de; Zhang Ying-B40530; afleming at gmail.com; Xie Xiaobo-R63061; Zhang Ying-B40530
Subject: Re: [U-Boot] [PATCH 5/6] spl: Make CONFIG_SPL_BUILD contain more functionality

On Fri, May 24, 2013 at 02:08:07PM -0500, Scott Wood wrote:
> On 05/24/2013 11:11:01 AM, Tom Rini wrote:
> >On Mon, May 20, 2013 at 02:07:27PM +0800, ying.zhang at freescale.com
> >wrote:
> >
> >> From: Ying Zhang <b40530 at freescale.com>
> >>
> >> There was some functionality will be used in the SPL. They
> >> had been excluded by ifndef CONFIG_SPL_BUILD. Now, put it
> >> into the SPL.
> >>
> >> Signed-off-by: Ying Zhang <b40530 at freescale.com>
> >> ---
> >>  arch/powerpc/cpu/mpc85xx/tlb.c |    2 +-
> >>  arch/powerpc/cpu/mpc8xxx/law.c |    4 ++--
> >
> >In these cases can we not just always build them, aside from when
> >CONFIG_NAND_SPL is set and rely on link-time discard here?  Otherwise:
> >
> >
> >> -#if !defined(CONFIG_NAND_SPL) && !defined(CONFIG_SPL_BUILD)
> >> +#if !defined(CONFIG_NAND_SPL) && !defined(CONFIG_SPL_NAND_MINIMAL)
> >
> >Should become, I believe (and this isn't whitespaced properly):
> >#if !defined(CONFIG_NAND_SPL) && !(defined(CONFIG_SPL_BUILD) &&
> >defined(CONFIG_SPL_NAND_MINIMAL))
> >
> >So that:
> >
> >> diff --git a/include/configs/MPC8313ERDB.h
> >b/include/configs/MPC8313ERDB.h
> >[snip]
> >> diff --git a/include/configs/P1022DS.h b/include/configs/P1022DS.h
> >[snip]
> >> diff --git a/include/configs/p1_p2_rdb_pc.h
> >b/include/configs/p1_p2_rdb_pc.h
> >
> >Can then all be dropped.
> 
> Possibly, but it would be nice to limit SPL symbols to only be
> defined for the SPL part of the build, so we don't have to add
> checks for CONFIG_SPL_BUILD all over the place.  Currently this
> won't work for symbols that makefiles look at, though there was a
> patch to fix that, which I referred to elsewhere in the these
> threads.

At the high level, yes, I agree it would be good to clean up everyones
configs around CONFIG_SPL/CONFIG_SPL_BUILD.

-- 
Tom



More information about the U-Boot mailing list