summaryrefslogtreecommitdiff
path: root/drivers/serial/Makefile
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-04-02 15:50:32 (GMT)
committerTom Rini <trini@konsulko.com>2017-04-05 20:36:59 (GMT)
commit891f7ae63318293cd5807fb611f86f545080b1f6 (patch)
tree27d59064d6f953675b95b162d48c0bfb70d2cd0b /drivers/serial/Makefile
parent5a6f06f696c9c4cf84666ac12b3b3bc3f6fcd93d (diff)
downloadu-boot-fsl-qoriq-891f7ae63318293cd5807fb611f86f545080b1f6.tar.xz
dm: serial: Allow driver-model serial to be disabled for TPL
Add separate enable/disable controls for driver-model serial. While this is generally enabled in SPL it may not be in TPL, since serial output can be obtained with the debug UART with minimal code size. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/serial/Makefile')
-rw-r--r--drivers/serial/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/Makefile b/drivers/serial/Makefile
index 4ed4bba..8ba15ce 100644
--- a/drivers/serial/Makefile
+++ b/drivers/serial/Makefile
@@ -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