[U-Boot] [PATCH] powerpc/8xxx: Reduce NAND-SPL build size

Kumar Gala galak at kernel.crashing.org
Mon Mar 14 12:45:17 CET 2011


On Mar 14, 2011, at 1:27 AM, Wolfgang Denk wrote:

> Dear Kumar Gala,
> 
> In message <BCF2A946-E0CC-43F6-A875-A0E5A0DE7A6D at kernel.crashing.org> you wrote:
>> 
>>>> We don't use disable_law in the SPL code so only build it if
>>>> !CONFIG_NAND_SPL.
>>> 
>>> Does -ffunction-sections / --gc-sections not catch this automatically?
>> 
>> Doesn't appear to, but not sure if the NAND makefiles are utilizing those options.
> 
> Can you please verify this first?
> 
> At first glace it looks as if the compilation was done with
> -ffunction-sections and -fdata-sections, but I don't see --gc-sections
> on the linker command line

commit 8aba9dceebb14144e07d19593111ee3a999c37fc
Author: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
Date:   Thu Jan 6 10:23:54 2011 +0900

    Divides variable of linker flags to LDFLAGS-u-boot and LDFLAGS

However, I think this is fixed via:

http://patchwork.ozlabs.org/patch/84010/

Which we need anyways, because Haiying's patch fixes nand boot in general.

- k


More information about the U-Boot mailing list