Merge branch 'master' of git://www.denx.de/git/u-boot
[oweals/u-boot.git] / drivers / spi / Makefile
index e66e0ee092f341fc87af6d2dafbfc417e079cf54..4f7b679eeb2f86e48ec6c571bfa6e0b2004d2c06 100644 (file)
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
 
 LIB    := $(obj)libspi.a
 
-COBJS-y += mpc8xxx_spi.o
+COBJS-$(CONFIG_MPC8XXX_SPI) += mpc8xxx_spi.o
 COBJS-$(CONFIG_ATMEL_SPI) += atmel_spi.o
 COBJS-$(CONFIG_MXC_SPI) += mxc_spi.o