summaryrefslogtreecommitdiff
path: root/payloads/external/SeaBIOS/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/external/SeaBIOS/Makefile')
-rw-r--r--payloads/external/SeaBIOS/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/payloads/external/SeaBIOS/Makefile b/payloads/external/SeaBIOS/Makefile
index b494b48dcf..8b6b0ed94b 100644
--- a/payloads/external/SeaBIOS/Makefile
+++ b/payloads/external/SeaBIOS/Makefile
@@ -45,6 +45,12 @@ ifeq ($(CONFIG_CONSOLE_SERIAL)$(CONFIG_DRIVERS_UART_8250IO),yy)
else ifeq ($(CONFIG_CONSOLE_SERIAL)$(CONFIG_DRIVERS_UART_8250MEM)$(CONFIG_HUDSON_UART),yyy)
echo "CONFIG_DEBUG_SERIAL_MMIO=y" >> seabios/.config
echo "CONFIG_DEBUG_SERIAL_MEM_ADDRESS=0xFEDC6000" >> seabios/.config
+else ifeq ($(CONFIG_CONSOLE_SERIAL)$(CONFIG_ENABLE_HSUART),yy)
+ echo "CONFIG_DEBUG_SERIAL_MMIO=y" >> seabios/.config
+ echo "CONFIG_DEBUG_SERIAL_MEM_ADDRESS=$(CONFIG_CONSOLE_UART_BASE_ADDRESS)" >> seabios/.config
+else ifeq ($(CONFIG_CONSOLE_SERIAL)$(CONFIG_DRIVERS_UART_8250MEM_32),yy)
+ echo "CONFIG_DEBUG_SERIAL_MMIO=y" >> seabios/.config
+ echo "CONFIG_DEBUG_SERIAL_MEM_ADDRESS=$(CONFIG_CONSOLE_UART_BASE_ADDRESS)" >> seabios/.config
else
echo "# CONFIG_DEBUG_SERIAL is not set" >> seabios/.config
endif