[U-Boot] [PATCH 3/7] Add support for SRAM Boot
Wolfgang Denk
wd at denx.de
Tue Aug 17 20:54:29 CEST 2010
Dear Scott Wood,
In message <20100817131904.5703f08e at schlenkerla.am.freescale.net> you wrote:
>
> ...but "take this entire subsystem as is" or "go without anything
> vaguely resembling this code, lest it be called 'duplication'" is a
> rather limiting pair of choices. It seems reasonable to refactor
> things to be more modular (possibly in a nicer way than sprinkling
> ifdefs), or provide an alternate trimmed-down implementation.
Agreed. Factoring out functions that can then be selected on Makefile
level is probably OK.
> One thing that should probably be tried first, though, is
> -ffunction-sections and --gc-sections, to have the linker discard any
> functions that aren't referenced. It seems some arches/boards already
> use this.
I guess that should help here a lot, too.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A day without sunshine is like night.
More information about the U-Boot
mailing list