summaryrefslogtreecommitdiff
path: root/src/arch/x86/boot
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2011-06-01 14:04:50 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2011-10-13 20:11:33 +0200
commit513eb5a9568261e5f1fc5b7cb7cbc129cda0f943 (patch)
tree9182f906a9498f62d850a3faa0cca5998499ca1f /src/arch/x86/boot
parent71496bea9b84b0d4c0d3576932d72f92b4c6881a (diff)
downloadcoreboot-513eb5a9568261e5f1fc5b7cb7cbc129cda0f943.tar.xz
Prevent build breakage without consoles enabled
If all console types are disabled, coreboot will fail to compile because static code is unused. This patch fixes the issue. Signed-off-by: Stefan Reinauer <reinauer@google.com> Change-Id: Ie9c8bf2a78e3aeba4c2908b06bc03f0f5af37db2 Reviewed-on: http://review.coreboot.org/260 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marcj303@gmail.com>
Diffstat (limited to 'src/arch/x86/boot')
-rw-r--r--src/arch/x86/boot/coreboot_table.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/x86/boot/coreboot_table.c b/src/arch/x86/boot/coreboot_table.c
index d53a23a9ee..cdfc0c1d8d 100644
--- a/src/arch/x86/boot/coreboot_table.c
+++ b/src/arch/x86/boot/coreboot_table.c
@@ -120,6 +120,8 @@ static struct lb_serial *lb_serial(struct lb_header *header)
#endif
}
+#if CONFIG_CONSOLE_SERIAL8250 || CONFIG_CONSOLE_SERIAL8250MEM || \
+ CONFIG_CONSOLE_LOGBUF || CONFIG_USBDEBUG
static void add_console(struct lb_header *header, u16 consoletype)
{
struct lb_console *console;
@@ -130,6 +132,8 @@ static void add_console(struct lb_header *header, u16 consoletype)
console->type = consoletype;
}
+#endif
+
static void lb_console(struct lb_header *header)
{
#if CONFIG_CONSOLE_SERIAL8250