Skip to content

Commit

Permalink
kconfig: correct oldconfig for unset choice options
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
Roman Zippel authored and Sam Ravnborg committed Aug 1, 2006
1 parent eb2cafa commit 002d27b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/kconfig/confdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 002d27b

Please sign in to comment.