(console,drivers/uart)/Kconfig: Fix dependencies
The dependencies of CONSOLE_SERIAL and DRIVERS_UART were somehow backwards. Fix that. Now, CONSOLE_SERIAL depends on DRIVERS_UART, because it's using its interface. The individual UART drivers select DRIVERS_UART, because they implement the interface and depend on the common UART code. Some guards had to be fixed (using CONSOLE_SERIAL now instead of DRIVERS_UART). Some other guards that were only about compilation of units were removed. We want to build test as much as possible, right? Change-Id: I0ea73a8909f07202b23c88db93df74cf9dc8abf9 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/29572 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
@@ -21,11 +21,9 @@ ramstage-y += monotonic_timer.c
|
||||
ramstage-y += timer.c
|
||||
ramstage-y += twi.c
|
||||
|
||||
ifeq ($(CONFIG_DRIVERS_UART),y)
|
||||
bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += uart.c uart_console.c
|
||||
bootblock-y += uart.c uart_console.c
|
||||
romstage-y += uart.c uart_console.c
|
||||
ramstage-y += uart.c uart_console.c
|
||||
endif
|
||||
|
||||
real-target: $(obj)/BOOT0
|
||||
|
||||
|
@@ -12,11 +12,9 @@ ramstage-y += monotonic_timer.c
|
||||
ramstage-y += nand.c
|
||||
ramstage-y += cbmem.c
|
||||
|
||||
ifeq ($(CONFIG_DRIVERS_UART),y)
|
||||
bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += uart.c
|
||||
bootblock-y += uart.c
|
||||
romstage-y += uart.c
|
||||
ramstage-y += uart.c
|
||||
endif
|
||||
|
||||
$(call add-class,omap-header)
|
||||
$(eval $(call create_class_compiler,omap-header,arm))
|
||||
|
Reference in New Issue
Block a user