Prevent build breakage without consoles enabled
[coreboot.git] / src / arch / x86 / boot / coreboot_table.c
index d53a23a9eeacb7178e6b9f5a76f25735c9cecf27..cdfc0c1d8d79d1ce6176febc290421fcf175a0f1 100644 (file)
@@ -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