linux_dsm_epyc7002/arch/mips/rb532
Matt Redfearn ff9bed94d0 MIPS: RB532: Avoid undefined early_serial_setup() without SERIAL_8250_CONSOLE
Currently MIPS allnoconfig with CONFIG_MIKROTIK_RB532=y fails to link due to
missing support for early_serial_setup():

  LD      vmlinux
arch/mips/rb532/serial.o: In function `setup_serial_port':
serial.c:(.init.text+0x14): undefined reference to `early_serial_setup'

Rather than adding dependencies to the platform to force inclusion of
SERIAL_8250_CONSOLE together with it's dependencies like TTY, HAS_IOMEM,
etc, just exclude arch/mips/rb532/serial.c from the build when it's
dependency is not selected in the kernel config.

Reported-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Matt Redfearn <matt.redfearn@mips.com>
Cc: James Hogan <james.hogan@mips.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/17701/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2018-01-10 16:38:11 +01:00
..
devices.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
gpio.c MIPS: rb532: use gpiochip data pointer 2016-02-19 09:51:44 +01:00
irq.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
Makefile MIPS: RB532: Avoid undefined early_serial_setup() without SERIAL_8250_CONSOLE 2018-01-10 16:38:11 +01:00
Platform MIPS: RB532: Migrate to new platform makefile style. 2010-08-05 13:25:50 +01:00
prom.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
serial.c MIPS: Add missing #inclusions of <linux/irq.h> 2010-10-07 14:08:54 +01:00
setup.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
time.c MIPS: Kill unused <asm/debug.h> inclusions 2008-10-15 12:46:52 +01:00