summaryrefslogtreecommitdiff
path: root/drivers/serial/Makefile
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-09-29 18:16:28 +0200
committerTom Rini <trini@ti.com>2012-10-15 11:53:58 -0700
commit7742aa65a89c28577e9674d688c34cf865587076 (patch)
treedd2a82cd09821b42d0aafea8da81a2063920f35b /drivers/serial/Makefile
parent19b8fa0b61afbb46fc7429b9a2514e10b3297738 (diff)
downloadu-boot-imx-7742aa65a89c28577e9674d688c34cf865587076.zip
u-boot-imx-7742aa65a89c28577e9674d688c34cf865587076.tar.gz
u-boot-imx-7742aa65a89c28577e9674d688c34cf865587076.tar.bz2
serial: Move common/serial.c to drivers/serial/
Move the common/serial.c into driver/serial/, since this file provides serial multiplexing functions and it is imperative to be linked with libserial.o instead of libcommon.o. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Marek Vasut <marek.vasut@gmail.com> Cc: Tom Rini <trini@ti.com>
Diffstat (limited to 'drivers/serial/Makefile')
-rw-r--r--drivers/serial/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/serial/Makefile b/drivers/serial/Makefile
index afaddea..a8b500b 100644
--- a/drivers/serial/Makefile
+++ b/drivers/serial/Makefile
@@ -25,6 +25,10 @@ include $(TOPDIR)/config.mk
LIB := $(obj)libserial.o
+ifndef CONFIG_SPL_BUILD
+COBJS-$(CONFIG_SERIAL_MULTI) += serial.o
+endif
+
COBJS-$(CONFIG_ALTERA_UART) += altera_uart.o
COBJS-$(CONFIG_ALTERA_JTAG_UART) += altera_jtag_uart.o
COBJS-$(CONFIG_ARM_DCC) += arm_dcc.o