From: Kim Phillips Date: Mon, 4 Feb 2008 19:11:48 -0600 Subject: [U-Boot-Users] mpc83xx_spi.c breaks non-ppc ports In-Reply-To: <200802041757.23650.vapier@gentoo.org> References: <200802041757.23650.vapier@gentoo.org> Message-ID: <20080204191148.dc1501ba.kim.phillips@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 On Mon, 4 Feb 2008 17:57:23 -0500 Mike Frysinger wrote: > 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 --- there's a better fix here: http://article.gmane.org/gmane.comp.boot-loaders.u-boot/36039 that I also pushed and have a pull request pending for WD to pick it up. Kim > 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) >