aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-06-25 15:45:30 +0200
committerKevin O'Connor <kevin@koconnor.net>2013-07-14 14:31:16 -0400
commitc83e7c2fb11ba8a5de2075ba36c860d750944e5b (patch)
tree490c0bdba4aec76db3eee7a5e7d09ce0a82cf4af
parentebf03f7fb15a3d04950a96e62901e420c2e2d425 (diff)
downloadseabios-c83e7c2fb11ba8a5de2075ba36c860d750944e5b.tar.gz
Add CONFIG_DEBUG_COREBOOT config option
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--src/Kconfig10
-rw-r--r--src/coreboot.c2
2 files changed, 11 insertions, 1 deletions
diff --git a/src/Kconfig b/src/Kconfig
index 5882d11..5e2db8b 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -433,4 +433,14 @@ menu "Debugging"
information by outputing strings in a special port present in the
IO space.
+ config DEBUG_COREBOOT
+ depends on COREBOOT && DEBUG_LEVEL != 0
+ bool "coreboot cbmem debug logging"
+ default y
+ help
+ Send debugging information to the coreboot cbmem console buffer.
+ Needs CONFIG_CONSOLE_CBMEM in coreboot. You can read the log
+ after boot using 'cbmem -c'. Only 32bit code (basically every-
+ thing before booting the OS) writes to the log buffer.
+
endmenu
diff --git a/src/coreboot.c b/src/coreboot.c
index c66e6e3..7f7b322 100644
--- a/src/coreboot.c
+++ b/src/coreboot.c
@@ -206,7 +206,7 @@ fail:
void debug_cbmem(char c)
{
- if (!CONFIG_COREBOOT)
+ if (!CONFIG_DEBUG_COREBOOT)
return;
if (!cbcon)
return;