[U-Boot] [PATCH] mpc83xx: fix undefined reference to `flush_cache' error in simpc8313 build

Scott Wood scottwood at freescale.com
Wed Jan 28 23:26:06 CET 2009


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.

-Scott


More information about the U-Boot mailing list