]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/serial/Makefile
dm: serial: Allow driver-model serial to be disabled for TPL
[people/ms/u-boot.git] / drivers / serial / Makefile
index 4ed4bba1bb60961b33b2f05b833e2fd234fd01b0..8ba15ce028e87e9d9e979440d0640cc388d35844 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