common: Drop asm/ptrace.h from common header
[oweals/u-boot.git] / drivers / block / Makefile
index 3feb0aa997df57a36dc76c4317dc88b86a021501..94ab5c6f906e18c565092e6176736ba1327db6f1 100644 (file)
@@ -6,7 +6,7 @@
 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