public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] mpc83xx: fix undefined reference to `flush_cache' error in simpc8313 build
@ 2009-01-27 22:03 Kim Phillips
  2009-01-28  9:01 ` Wolfgang Denk
  0 siblings, 1 reply; 9+ messages in thread
From: Kim Phillips @ 2009-01-27 22:03 UTC (permalink / raw)
  To: u-boot

extend commit c70564e6b1bd08f3230182392238907f3531a87e
"NAND: Fix cache and memory inconsistency issue" to add the cache.o dependency
to the simpc8313 build and fix this:

...Large Page NAND...Configuring for SIMPC8313 board...
nand_boot_fsl_elbc.o: In function `nand_boot':
nand_spl/board/sheldon/simpc8313/nand_boot_fsl_elbc.c:150: undefined reference to `flush_cache'
make[1]: *** [/home/r1aaha/git/u-boot-mpc83xx/nand_spl/u-boot-spl] Error 1
make: *** [nand_spl] Error 2

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
---
Ron, if you ack/confirm this doesn't break your board, I'll apply this
to u-boot-mpc83xx.

Thanks, Kim

 nand_spl/board/sheldon/simpc8313/Makefile |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/nand_spl/board/sheldon/simpc8313/Makefile b/nand_spl/board/sheldon/simpc8313/Makefile
index b0967a3..416e176 100644
--- a/nand_spl/board/sheldon/simpc8313/Makefile
+++ b/nand_spl/board/sheldon/simpc8313/Makefile
@@ -34,7 +34,8 @@ AFLAGS	+= -DCONFIG_NAND_SPL
 CFLAGS	+= -DCONFIG_NAND_SPL
 
 SOBJS	= start.o ticks.o
-COBJS	= nand_boot_fsl_elbc.o $(BOARD).o sdram.o ns16550.o nand_init.o time.o
+COBJS	= nand_boot_fsl_elbc.o $(BOARD).o sdram.o ns16550.o nand_init.o \
+	  time.o cache.o
 
 SRCS	:= $(addprefix $(obj),$(SOBJS:.o=.S) $(COBJS:.o=.c))
 OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS))
@@ -78,6 +79,9 @@ $(obj)ns16550.c:
 $(obj)nand_init.c:
 	ln -sf $(SRCTREE)/cpu/mpc83xx/nand_init.c $<
 
+$(obj)cache.c:
+	ln -sf $(SRCTREE)/lib_ppc/cache.c $<
+
 $(obj)time.c:
 	ln -sf $(SRCTREE)/lib_ppc/time.c $<
 
-- 
1.6.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-01-28 22:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-27 22:03 [U-Boot] [PATCH] mpc83xx: fix undefined reference to `flush_cache' error in simpc8313 build Kim Phillips
2009-01-28  9:01 ` Wolfgang Denk
2009-01-28 18:45   ` Ron Madrid
2009-01-28 19:18     ` Wolfgang Denk
2009-01-28 19:21       ` Ron Madrid
2009-01-28 20:24       ` Scott Wood
2009-01-28 22:24         ` Ron Madrid
2009-01-28 22:26           ` Scott Wood
2009-01-28 22:59             ` Ron Madrid

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox