]> xenbits.xensource.com Git - seabios.git/commitdiff
Add CONFIG_DEBUG_COREBOOT config option
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 25 Jun 2013 13:45:30 +0000 (15:45 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 14 Jul 2013 18:31:16 +0000 (14:31 -0400)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/Kconfig
src/coreboot.c

index 5882d11abeef9859cb5e55a225cd09842d953af0..5e2db8b1857090fea82c3a7931045eea14d53927 100644 (file)
@@ -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
index c66e6e317604fe0a23ebad29c36bffe3c4ebf60d..7f7b32225c69f1722b7991289bd5f0f2123ac045 100644 (file)
@@ -206,7 +206,7 @@ fail:
 
 void debug_cbmem(char c)
 {
-    if (!CONFIG_COREBOOT)
+    if (!CONFIG_DEBUG_COREBOOT)
         return;
     if (!cbcon)
         return;