From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Wed, 28 Jan 2009 16:26:06 -0600 Subject: [U-Boot] [PATCH] mpc83xx: fix undefined reference to `flush_cache' error in simpc8313 build In-Reply-To: <820349.28192.qm@web83502.mail.sp1.yahoo.com> References: <820349.28192.qm@web83502.mail.sp1.yahoo.com> Message-ID: <4980DB7E.1060104@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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