[U-Boot] [PATCH] mpc83xx: fix undefined reference to `flush_cache' error in simpc8313 build
Ron Madrid
ron_madrid at sbcglobal.net
Wed Jan 28 23:59:25 CET 2009
--- On Wed, 1/28/09, Scott Wood <scottwood at freescale.com> wrote:
> From: Scott Wood <scottwood at freescale.com>
> Subject: Re: [U-Boot] [PATCH] mpc83xx: fix undefined reference to `flush_cache' error in simpc8313 build
> To: ron_madrid at sbcglobal.net
> Cc: "Wolfgang Denk" <wd at denx.de>, u-boot at lists.denx.de, "Kim Phillips" <kim.phillips at freescale.com>
> Date: Wednesday, January 28, 2009, 2:26 PM
> Ron Madrid wrote:
> > It would seem that the drivers/serial/ns16550.c file
> currently being
> > included in my project has a few functions that are
> completely unused
> > by my board. Is it allowable to duplicate the two
> functions I do use
> > (NS16550_putc and NS16550_init) in my code within a
> #ifdef CONFIG_NAND_SPL? This saves about 120 (decimal) bytes
> in the bootstrap image.
>
> Maybe just put #ifndef CONFIG_NAND_SPL in the existing
> file? I'm assuming that none of the other boards are
> going to need anything other than init and putc in their
> NAND loaders.
It would appear that within the nand_spl directory the mpc8313erdb and the
simpc8313 are the only two board that include the file ns16550.c in the
build. These changes work for my board (with the patch that Kim sent out
earlier) and at this time I am running the MAKEALL. After that succeeds I
will send the patch.
Ron
>
> -Scott
More information about the U-Boot
mailing list