summaryrefslogtreecommitdiffstats
path: root/payloads/coreinfo/bootlog_module.c
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2015-06-29 16:08:39 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2015-07-01 00:36:36 +0200
commit04fb7a81c1a08e3f4276dcdc489ea51238d36b2b (patch)
treecc6c9ab54a84c250809eb10db9ced7b8743dd694 /payloads/coreinfo/bootlog_module.c
parentd13fd1b013f1639521aa1a682d147db758db398f (diff)
downloadcoreboot-staging-04fb7a81c1a08e3f4276dcdc489ea51238d36b2b.zip
coreboot-staging-04fb7a81c1a08e3f4276dcdc489ea51238d36b2b.tar.gz
coreinfo: Use IS_ENABLED() to query Kconfig variables
This will make the code work with the different styles of Kconfig (emit unset bools vs don't emit unset bools) Roughly, the patch does this, and a little bit of fixing up: perl -pi -e 's,ifdef (CONFIG_.+?)\b,if IS_ENABLED\($1\),g' `find . -name *.[ch]` perl -pi -e 's,ifndef (CONFIG_.+?)\b,if !IS_ENABLED\($1\),g' `find . -name *.[ch]` Change-Id: Ia461a33541f58ff39e984119c44ece7e6c05608a Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: http://review.coreboot.org/10713 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'payloads/coreinfo/bootlog_module.c')
-rw-r--r--payloads/coreinfo/bootlog_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/coreinfo/bootlog_module.c b/payloads/coreinfo/bootlog_module.c
index ca5b040..791446b 100644
--- a/payloads/coreinfo/bootlog_module.c
+++ b/payloads/coreinfo/bootlog_module.c
@@ -19,7 +19,7 @@
#include "coreinfo.h"
-#ifdef CONFIG_MODULE_BOOTLOG
+#if IS_ENABLED(CONFIG_MODULE_BOOTLOG)
#define CONFIG_COREBOOT_PRINTK_BUFFER_ADDR 0x90000
#define CONFIG_COREBOOT_PRINTK_BUFFER_SIZE 65536
OpenPOWER on IntegriCloud