]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
serial: Unconditionally enable CONFIG_SERIAL_MULTI
authorMarek Vasut <marex@denx.de>
Fri, 14 Sep 2012 21:20:05 +0000 (23:20 +0200)
committerTom Rini <trini@ti.com>
Mon, 15 Oct 2012 18:53:58 +0000 (11:53 -0700)
Enable CONFIG_SERIAL_MULTI for all builds of U-Boot. That includes
both SPL builds and non-SPL builds, everything. To avoid poluting
this patch with removal of ifdef-endif constructions containing
CONFIG_SERIAL_MULTI, the CONFIG_SERIAL_MULTI is temporarily added
into CPPFLAGS in config.mk . This will be again removed in following
patch.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
config.mk
drivers/serial/Makefile

index 51b47838cf53dd85fd928945efa36e2b92d9b975..9099c1111e42e40623a2fb0bf5a1d0fdc0bad472 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -194,7 +194,7 @@ OBJCFLAGS += --gap-fill=0xff
 gccincdir := $(shell $(CC) -print-file-name=include)
 
 CPPFLAGS := $(DBGFLAGS) $(OPTFLAGS) $(RELFLAGS)                \
-       -D__KERNEL__
+       -D__KERNEL__ -DCONFIG_SERIAL_MULTI
 
 # Enable garbage collection of un-used sections for SPL
 ifeq ($(CONFIG_SPL_BUILD),y)
index a8b500b222fdd560e8233ae840d5d4959b3a643e..cc1445352b701041593d72150dc9af448d086a79 100644 (file)
@@ -25,9 +25,7 @@ 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