console: Set default loglevel to 8 (SPEW) for CONFIG_CHROMEOS

CB:26053 changed coreboot's default loglevel from SPEW to DEBUG. This
may be the most reasonable choice for most users that are mostly
interested in the UART console. However, on Chrome OS devices the UART
is disabled for production configurations anyway, and instead they rely
heavily on the CBMEM console for remote debugging and bug reports. For
these kinds of cases more info is almost always better, and you can't
easily reproduce a remotely filed bug if you notice that you need some
info that is only provided by BIOS_SPEW. On the other hand, the cost of
logging extra info to the CBMEM console is pretty negligible.

Therefore, let's bump the loglevel for CONFIG_CHROMEOS in particular
back up to the maximum. (Unfortunately, it seems that you can't 'select'
a choice option from another option, so this has to go in the
console/Kconfig file.)

Change-Id: I50724e3f7f8f57fdbc5846f21babc71798b21b65
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/29144
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Julius Werner 2018-10-15 17:19:58 -07:00 committed by Patrick Georgi
parent 6205221a73
commit e64a585374
1 changed files with 1 additions and 0 deletions

View File

@ -308,6 +308,7 @@ if !CONSOLE_OVERRIDE_LOGLEVEL
choice
prompt "Default console log level"
default DEFAULT_CONSOLE_LOGLEVEL_8 if CHROMEOS
default DEFAULT_CONSOLE_LOGLEVEL_7
config DEFAULT_CONSOLE_LOGLEVEL_8