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>
This commit is contained in:
Stefan Reinauer 2011-06-01 14:04:50 -07:00 committed by Stefan Reinauer
parent 71496bea9b
commit 513eb5a956
1 changed files with 4 additions and 0 deletions

View File

@ -120,6 +120,8 @@ static struct lb_serial *lb_serial(struct lb_header *header)
#endif #endif
} }
#if CONFIG_CONSOLE_SERIAL8250 || CONFIG_CONSOLE_SERIAL8250MEM || \
CONFIG_CONSOLE_LOGBUF || CONFIG_USBDEBUG
static void add_console(struct lb_header *header, u16 consoletype) static void add_console(struct lb_header *header, u16 consoletype)
{ {
struct lb_console *console; struct lb_console *console;
@ -130,6 +132,8 @@ static void add_console(struct lb_header *header, u16 consoletype)
console->type = consoletype; console->type = consoletype;
} }
#endif
static void lb_console(struct lb_header *header) static void lb_console(struct lb_header *header)
{ {
#if CONFIG_CONSOLE_SERIAL8250 #if CONFIG_CONSOLE_SERIAL8250