summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/kconfig/confdata.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/util/kconfig/confdata.c b/util/kconfig/confdata.c
index 3bbad3010a..946b8a9c0b 100644
--- a/util/kconfig/confdata.c
+++ b/util/kconfig/confdata.c
@@ -721,8 +721,15 @@ int conf_write_autoconf(void)
for_all_symbols(i, sym) {
sym_calc_value(sym);
- if (!(sym->flags & SYMBOL_WRITE) || !sym->name)
+ if (!sym->name)
continue;
+ if (!(sym->flags & SYMBOL_WRITE)) {
+ if (sym->type == S_BOOLEAN || sym->type == S_HEX
+ || sym->type == S_INT)
+ fprintf(out_h, "#define CONFIG_%s 0\n",
+ sym->name);
+ continue;
+ }
switch (sym->type) {
case S_BOOLEAN:
case S_TRISTATE: