]> git.baikalelectronics.ru Git - uboot.git/commit
serial: Add missing Kconfig dependencies for debug consoles
authorMichal Simek <michal.simek@xilinx.com>
Thu, 28 May 2020 10:05:12 +0000 (12:05 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 4 Jun 2020 19:05:45 +0000 (15:05 -0400)
commit9f75a00c143a3685def0bb5d01fe5fd4a80b351d
tree3e5132030c4fd243c8757daf1d089bf5a5a42276
parent126f309a0fe810f267931ce4c29badd45308e954
serial: Add missing Kconfig dependencies for debug consoles

Debug console is the part of serial driver in the same file. It means to be
able to enable debug console you also need to enable driver itself.
That's why add all dependecies and list only debug consoles which are
enabled based on driver selection to avoid compilation error when user
asks for certain debug console but driver is not enable for it.

Error:
aarch64-linux-gnu-ld.bfd: common/built-in.o: in function `putc':
/home/monstr/data/disk/u-boot/common/console.c:513: undefined reference to `printch'
aarch64-linux-gnu-ld.bfd: common/built-in.o: in function `puts':
/home/monstr/data/disk/u-boot/common/console.c:563: undefined reference to `printch'

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
[trini: Fix ns16550 dependency, add ZYNQ_SERIAL, change S5P]
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/serial/Kconfig