]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/spi/Makefile
dm: sandbox: Add a SPI emulation uclass
[karo-tx-uboot.git] / drivers / spi / Makefile
index f02c35a52c0cd5100804342ca0e05a915151fd7d..a1de0288de208985d16c087fd8422bd20d4b0796 100644 (file)
@@ -6,7 +6,12 @@
 #
 
 # There are many options which enable SPI, so make this library available
+ifdef CONFIG_DM_SPI
+obj-y += spi-uclass.o
+obj-$(CONFIG_SANDBOX) += spi-emul-uclass.o
+else
 obj-y += spi.o
+endif
 
 obj-$(CONFIG_EP93XX_SPI) += ep93xx_spi.o
 obj-$(CONFIG_ALTERA_SPI) += altera_spi.o