Merge branch '2019-01-14-master-imports'
[oweals/u-boot.git] / drivers / block / Makefile
index 5fcafb193ee98523fbe738710100b9a1824f6a6a..3feb0aa997df57a36dc76c4317dc88b86a021501 100644 (file)
@@ -9,6 +9,8 @@ ifndef CONFIG_$(SPL_)BLK
 obj-y += blk_legacy.o
 endif
 
+ifndef CONFIG_SPL_BUILD
 obj-$(CONFIG_IDE) += ide.o
+endif
 obj-$(CONFIG_SANDBOX) += sandbox.o
-obj-$(CONFIG_BLOCK_CACHE) += blkcache.o
+obj-$(CONFIG_$(SPL_TPL_)BLOCK_CACHE) += blkcache.o