kconfig: correct oldconfig for unset choice options
authorRoman Zippel <zippel@linux-m68k.org>
Thu, 13 Jul 2006 11:22:38 +0000 (13:22 +0200)
committerSam Ravnborg <sam@mars.ravnborg.org>
Tue, 1 Aug 2006 09:32:47 +0000 (11:32 +0200)
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>
scripts/kconfig/confdata.c

index 2ee48c3..a69d8ac 100644 (file)
@@ -357,7 +357,7 @@ int conf_read(const char *name)
                for (e = prop->expr; e; e = e->left.expr)
                        if (e->right.sym->visible != no)
                                flags &= e->right.sym->flags;
-               sym->flags |= flags & SYMBOL_DEF_USER;
+               sym->flags &= flags | ~SYMBOL_DEF_USER;
        }
 
        sym_change_count += conf_warnings || conf_unsaved;