summaryrefslogtreecommitdiff
path: root/util/kconfig/confdata.c
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2015-08-20 11:19:34 -0700
committerPatrick Georgi <pgeorgi@google.com>2015-09-30 06:58:57 +0000
commit57a31317a26ff5f55638c4f3dd8d06b8a69b78f2 (patch)
treec8ac4862f908bf51f2bab03b80f6c34e8e0874f9 /util/kconfig/confdata.c
parent588ad7b5db26a88dad36e2dbecf5a4242d8410be (diff)
kconfig: Allow KCONFIG_STRICT outside of confdata.c
To catch dependency errors in symbol.c (such as the ones fixed by I51b4ee326f082c6a656a813ee5772e9c34f5c343) we need to check for global kconfig warnings before saving config files. This patch will produce errors for wrong dependencies and add catching of errors to conf, nconf and mconf. Sorry, gconf users, you will have to wait. Change-Id: Idf7ee406ce3869941af319219aea16fab826df84 Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: http://review.coreboot.org/11291 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/kconfig/confdata.c')
-rw-r--r--util/kconfig/confdata.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/util/kconfig/confdata.c b/util/kconfig/confdata.c
index 5804b29faa..a39a716f79 100644
--- a/util/kconfig/confdata.c
+++ b/util/kconfig/confdata.c
@@ -404,11 +404,7 @@ setsym:
if (modules_sym)
sym_calc_value(modules_sym);
- name = getenv("KCONFIG_STRICT");
- if (name && *name && conf_warnings) {
- fprintf(stderr, "\nERROR: %d warnings encountered, and warnings are errors.\n\n", conf_warnings);
- return 1;
- }
+ kconfig_warnings += conf_warnings;
return 0;
}