diff options
author | Nico Huber <nico.huber@secunet.com> | 2012-11-12 16:59:24 +0100 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2012-11-15 18:51:17 +0100 |
commit | dd5979ab4330d8677ad250ec4afcd7cb10c83cbc (patch) | |
tree | cf8e293c022e0cc2e0403aa426e76841253fbe91 /payloads/libpayload/arch/powerpc/main.c | |
parent | ff73306ec2612f11d408bf9d708153bb45975ad3 (diff) |
libpayload: Use #ifdef for CONFIG_* checks
Libpayload uses the linux kernel's config style, where CONFIG_* defines
don't get written for unset tristates.
Change-Id: I3f832cf86bca9a1e153d96af4bf6434a19eba2f6
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: http://review.coreboot.org/1847
Tested-by: build bot (Jenkins)
Reviewed-by: Anton Kochkov <anton.kochkov@gmail.com>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'payloads/libpayload/arch/powerpc/main.c')
-rw-r--r-- | payloads/libpayload/arch/powerpc/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/payloads/libpayload/arch/powerpc/main.c b/payloads/libpayload/arch/powerpc/main.c index 431cac460b..9722e0c0c5 100644 --- a/payloads/libpayload/arch/powerpc/main.c +++ b/payloads/libpayload/arch/powerpc/main.c @@ -47,8 +47,9 @@ void start_main(void) extern int main(int argc, char **argv); /* Optionally set up the consoles. */ - if (!CONFIG_SKIP_CONSOLE_INIT) - console_init(); +#ifndef CONFIG_SKIP_CONSOLE_INIT + console_init(); +#endif /* Gather system information. */ lib_get_sysinfo(); |