]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
serial: Move common/serial.c to drivers/serial/
authorMarek Vasut <marex@denx.de>
Sat, 29 Sep 2012 16:16:28 +0000 (18:16 +0200)
committerTom Rini <trini@ti.com>
Mon, 15 Oct 2012 18:53:58 +0000 (11:53 -0700)
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>
common/Makefile
drivers/serial/Makefile
drivers/serial/serial.c [moved from common/serial.c with 100% similarity]

index 33c606abb2305560879c007ab4c26e762b5ae027..abca82072665540cc1a043d77c0246fd0beddfe0 100644 (file)
@@ -32,7 +32,6 @@ COBJS-y += command.o
 COBJS-y += exports.o
 COBJS-$(CONFIG_SYS_HUSH_PARSER) += hush.o
 COBJS-y += s_record.o
-COBJS-$(CONFIG_SERIAL_MULTI) += serial.o
 COBJS-y += xyzModem.o
 COBJS-y += cmd_disk.o
 
index afaddeaa261b341ed3a8744e5f395a06ac16e03d..a8b500b222fdd560e8233ae840d5d4959b3a643e 100644 (file)
@@ -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
similarity index 100%
rename from common/serial.c
rename to drivers/serial/serial.c