Skip to content

Commit ea1fc02

Browse files
fugangduangregkh
authored andcommitted
tty: serial: imx: add dependence and build for earlycon
Add the earlycon dependence and add earlycon Makefile support to allow to build the driver. Fixes: 699cc4d ("tty: serial: imx: add imx earlycon driver") Signed-off-by: Fugang Duan <fugang.duan@nxp.com> Link: https://lore.kernel.org/r/20200810060652.3436-1-fugang.duan@nxp.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 8c6c378 commit ea1fc02

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/tty/serial/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ config SERIAL_IMX_CONSOLE
517517

518518
config SERIAL_IMX_EARLYCON
519519
bool "Earlycon on IMX serial port"
520+
depends on ARCH_MXC || COMPILE_TEST
520521
depends on OF
521522
select SERIAL_EARLYCON
522523
help

drivers/tty/serial/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ obj-$(CONFIG_SERIAL_ZS) += zs.o
4343
obj-$(CONFIG_SERIAL_SH_SCI) += sh-sci.o
4444
obj-$(CONFIG_SERIAL_CPM) += cpm_uart/
4545
obj-$(CONFIG_SERIAL_IMX) += imx.o
46+
obj-$(CONFIG_SERIAL_IMX_EARLYCON) += imx_earlycon.o
4647
obj-$(CONFIG_SERIAL_MPC52xx) += mpc52xx_uart.o
4748
obj-$(CONFIG_SERIAL_ICOM) += icom.o
4849
obj-$(CONFIG_SERIAL_MESON) += meson_uart.o

0 commit comments

Comments
 (0)