dm: serial: Allow driver-model serial to be disabled for TPL
[platform/kernel/u-boot.git] / drivers / serial / Makefile
index 4ed4bba..8ba15ce 100644 (file)
@@ -6,7 +6,7 @@
 #
 
 ifdef CONFIG_DM_SERIAL
-obj-y += serial-uclass.o
+obj-$(CONFIG_$(SPL_TPL_)DM_SERIAL) += serial-uclass.o
 obj-$(CONFIG_PL01X_SERIAL) += serial_pl01x.o
 else
 obj-y += serial.o