diff options
author | Roman Zippel <zippel@linux-m68k.org> | 2006-07-13 07:22:38 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-08-01 05:32:47 -0400 |
commit | 002d27b1b70f6d574c816ef265147704c4e951f1 (patch) | |
tree | ddb07ea199de0cdee8df8f59a1248a73fa2c9b7a | |
parent | eb2cafa1d9026ced051601053885e260f8b8c099 (diff) |
kconfig: correct oldconfig for unset choice options
oldconfig currently ignores unset choice options and doesn't ask for them.
Correct the SYMBOL_DEF_USER flag of the choice symbol to be only set if
it's set for all values.
Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
-rw-r--r-- | scripts/kconfig/confdata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index 2ee48c377b66..a69d8acbf274 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c | |||
@@ -357,7 +357,7 @@ int conf_read(const char *name) | |||
357 | for (e = prop->expr; e; e = e->left.expr) | 357 | for (e = prop->expr; e; e = e->left.expr) |
358 | if (e->right.sym->visible != no) | 358 | if (e->right.sym->visible != no) |
359 | flags &= e->right.sym->flags; | 359 | flags &= e->right.sym->flags; |
360 | sym->flags |= flags & SYMBOL_DEF_USER; | 360 | sym->flags &= flags | ~SYMBOL_DEF_USER; |
361 | } | 361 | } |
362 | 362 | ||
363 | sym_change_count += conf_warnings || conf_unsaved; | 363 | sym_change_count += conf_warnings || conf_unsaved; |