[U-Boot-Users] mpc83xx_spi.c breaks non-ppc ports

Mike Frysinger vapier at gentoo.org
Mon Feb 4 23:57:23 CET 2008


Commit 04a9e1180ac76a7bacc15a6fcd95ad839d65bddb introduced the mpc83xx_spi.c
driver which gets compiled for everyone, but this obviously only builds for
the ppc port.  I haven't been following the latest build updates, but the
attached patch is one way to fix things.

Signed-off-by: Mike Frysinger <vapier at gentoo.org
---
diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile
index 0b7a2df..1fdfb38 100644
--- a/drivers/spi/Makefile
+++ b/drivers/spi/Makefile
@@ -25,7 +25,9 @@ include $(TOPDIR)/config.mk
 
 LIB	:= $(obj)libspi.a
 
-COBJS-y += mpc8xxx_spi.o
+COBJS-ppc += mpc8xxx_spi.o
+
+COBJS-y += $(COBJS-$(ARCH))
 
 COBJS	:= $(COBJS-y)
 SRCS	:= $(COBJS:.o=.c)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20080204/c055d009/attachment.pgp 


More information about the U-Boot mailing list