blk: Rework guard around part_init call
[oweals/u-boot.git] / drivers / block / Makefile
index 055d42f7d4af263b5e7c476ef7e889e56618812c..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_$(SPL_TPL_)BLOCK_CACHE) += blkcache.o