UPSTREAM: SeaBIOS: Add Kconfig option to set verbosity level
Previously SeaBIOS's default was used (1). This patch defaults to
coreboot's console level instead which is approximately the same
verbosity as SeaBIOS and thus what a user would probably expect.
BUG=none
BRANCH=none
TEST=none
Change-Id: Ic99aad03d625b6d81ce0a047c35a39074985f3d6
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: c48d791506
Original-Change-Id: If79e5f40c9380bb527f870eeb7d0cb43faf00beb
Original-Signed-off-by: Stefan Tauner <stefan.tauner@gmx.at>
Original-Reviewed-on: https://review.coreboot.org/18051
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://chromium-review.googlesource.com/430180
Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
This commit is contained in:
parent
3c1f742a08
commit
8b2af4d7fa
3 changed files with 17 additions and 3 deletions
3
payloads/external/Makefile.inc
vendored
3
payloads/external/Makefile.inc
vendored
|
|
@ -86,7 +86,8 @@ payloads/external/SeaBIOS/seabios/out/bios.bin.elf seabios: $(DOTCONFIG)
|
|||
CONFIG_SEABIOS_VGA_COREBOOT=$(CONFIG_SEABIOS_VGA_COREBOOT) \
|
||||
CONFIG_DRIVERS_UART_8250IO=$(CONFIG_DRIVERS_UART_8250IO) \
|
||||
CONFIG_CONSOLE_SERIAL=$(CONFIG_CONSOLE_SERIAL) \
|
||||
CONFIG_TTYS0_BASE=$(CONFIG_TTYS0_BASE)
|
||||
CONFIG_TTYS0_BASE=$(CONFIG_TTYS0_BASE) \
|
||||
CONFIG_SEABIOS_DEBUG_LEVEL=$(CONFIG_SEABIOS_DEBUG_LEVEL)
|
||||
|
||||
payloads/external/SeaBIOS/seabios/out/vgabios.bin: seabios
|
||||
payloads/external/SeaBIOS/seabios/.config: payloads/external/SeaBIOS/seabios/out/bios.bin.elf
|
||||
|
|
|
|||
10
payloads/external/SeaBIOS/Kconfig
vendored
10
payloads/external/SeaBIOS/Kconfig
vendored
|
|
@ -94,4 +94,14 @@ config PAYLOAD_VGABIOS_FILE
|
|||
depends on SEABIOS_VGA_COREBOOT
|
||||
default "payloads/external/SeaBIOS/seabios/out/vgabios.bin"
|
||||
|
||||
config SEABIOS_DEBUG_LEVEL
|
||||
prompt "SeaBIOS debug level (verbosity)"
|
||||
default DEFAULT_CONSOLE_LOGLEVEL
|
||||
int
|
||||
help
|
||||
The higher the number, the more verbose SeaBIOS will be. The range is
|
||||
not well defined but the typical values range from 0 to about 9 inclusive
|
||||
where 0 disables all output. Set this value to -1 to use SeaBIOS' default.
|
||||
|
||||
The default is to use coreboot's loglevel.
|
||||
endif
|
||||
|
|
|
|||
7
payloads/external/SeaBIOS/Makefile
vendored
7
payloads/external/SeaBIOS/Makefile
vendored
|
|
@ -60,8 +60,11 @@ else
|
|||
false
|
||||
endif
|
||||
endif
|
||||
# This shows how to force a previously set .config option *off*
|
||||
#echo "# CONFIG_SMBIOS is not set" >> seabios/.config
|
||||
ifneq ($(CONFIG_SEABIOS_DEBUG_LEVEL),-1)
|
||||
echo "CONFIG_DEBUG_LEVEL=$(CONFIG_SEABIOS_DEBUG_LEVEL)" >> seabios/.config
|
||||
endif
|
||||
# This shows how to force a previously set .config option *off*
|
||||
# echo "# CONFIG_SMBIOS is not set" >> seabios/.config
|
||||
$(MAKE) -C seabios olddefconfig OUT=out/
|
||||
|
||||
build: config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue