summaryrefslogtreecommitdiff
path: root/payloads/libpayload/arch
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/arch')
-rw-r--r--payloads/libpayload/arch/i386/main.c5
-rw-r--r--payloads/libpayload/arch/powerpc/main.c5
2 files changed, 6 insertions, 4 deletions
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
diff --git a/payloads/libpayload/arch/powerpc/main.c b/payloads/libpayload/arch/powerpc/main.c
index 378c6f387f..431cac460b 100644
--- a/payloads/libpayload/arch/powerpc/main.c
+++ b/payloads/libpayload/arch/powerpc/main.c
@@ -46,8 +46,9 @@ void start_main(void)
{
extern int main(int argc, char **argv);
- /* Set up the consoles. */
- console_init();
+ /* Optionally set up the consoles. */
+ if (!CONFIG_SKIP_CONSOLE_INIT)
+ console_init();
/* Gather system information. */
lib_get_sysinfo();