common: Drop asm/ptrace.h from common header
[oweals/u-boot.git] / drivers / block / Makefile
index 5fcafb193ee98523fbe738710100b9a1824f6a6a..94ab5c6f906e18c565092e6176736ba1327db6f1 100644 (file)
@@ -6,9 +6,11 @@
 obj-$(CONFIG_$(SPL_)BLK) += blk-uclass.o
 
 ifndef CONFIG_$(SPL_)BLK
-obj-y += blk_legacy.o
+obj-$(CONFIG_HAVE_BLOCK_DEVICE) += 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