From 4bb0731a7beaada481371fb19117cdf9f62f5f23 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 5 Oct 2012 11:43:39 -0700 Subject: libpayload: Add an option to skip console initialization on startup. A payload may want to decide whether it uses certain input/output consoles, or that it wants support for outputing to a particular device but not to use that device as a console. This change adds a config option which skips the call to console_init in start_main. Change-Id: I32b224d4d0bd3a239b402ecb09ee907d53225735 Signed-off-by: Gabe Black Reviewed-on: http://review.coreboot.org/1732 Tested-by: build bot (Jenkins) Reviewed-by: Anton Kochkov --- payloads/libpayload/arch/i386/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'payloads/libpayload/arch/i386') diff --git a/payloads/libpayload/arch/i386/main.c b/payloads/libpayload/arch/i386/main.c index 36cfb69bff..19ac6628eb 100644 --- a/payloads/libpayload/arch/i386/main.c +++ b/payloads/libpayload/arch/i386/main.c @@ -49,8 +49,9 @@ void start_main(void) /* Gather system information. */ lib_get_sysinfo(); - /* Set up the consoles. */ - console_init(); + /* Optionally set up the consoles. */ + if (!CONFIG_SKIP_CONSOLE_INIT) + console_init(); /* * Any other system init that has to happen before the -- cgit v1.2.3