serial: Compile drivers/serial/serial.c by default
Compile drivers/serial/serial.c by default both into SPL and into non-SPL builds, since CONFIG_SERIAL_MULTI is now the default state. Also having common/serial.c in by default now, it's pointless to keep -DCONFIG_SERIAL_MULTI in CPPFLAGS any longer, so remove it as well. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Marek Vasut <marek.vasut@gmail.com> Cc: Tom Rini <trini@ti.com> Cc: Anatolij Gustschin <agust@denx.de> Cc: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
036036d79c
commit
c1f5805a9d
@ -194,7 +194,7 @@ OBJCFLAGS += --gap-fill=0xff
|
||||
gccincdir := $(shell $(CC) -print-file-name=include)
|
||||
|
||||
CPPFLAGS := $(DBGFLAGS) $(OPTFLAGS) $(RELFLAGS) \
|
||||
-D__KERNEL__ -DCONFIG_SERIAL_MULTI
|
||||
-D__KERNEL__
|
||||
|
||||
# Enable garbage collection of un-used sections for SPL
|
||||
ifeq ($(CONFIG_SPL_BUILD),y)
|
||||
|
@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
|
||||
|
||||
LIB := $(obj)libserial.o
|
||||
|
||||
COBJS-$(CONFIG_SERIAL_MULTI) += serial.o
|
||||
COBJS-y += serial.o
|
||||
|
||||
COBJS-$(CONFIG_ALTERA_UART) += altera_uart.o
|
||||
COBJS-$(CONFIG_ALTERA_JTAG_UART) += altera_jtag_uart.o
|
||||
|
Loading…
Reference in New Issue
Block a user