summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/kconfig/confdata.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/util/kconfig/confdata.c b/util/kconfig/confdata.c
index 235debf614..5804b29faa 100644
--- a/util/kconfig/confdata.c
+++ b/util/kconfig/confdata.c
@@ -358,6 +358,7 @@ load:
if (def == S_DEF_USER) {
sym = sym_find(line + strlen(CONFIG_));
if (!sym) {
+ conf_warning("trying to assign non-existent symbol %s", line + strlen(CONFIG_));
sym_add_change_count(1);
goto setsym;
}
@@ -402,6 +403,13 @@ 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;
+ }
+
return 0;
}