summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/mconf.c
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2004-07-28 01:13:09 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2004-07-28 01:13:09 +0000
commit72f3b7cf814beb273c5b5867c47a7a84daf50ac1 (patch)
tree2e7f7b6bcab54a6a879779f8ba55f2c11bc78e5f /scripts/kconfig/mconf.c
parent137846cd75ac08d81141d46c878045b29efef66b (diff)
downloadptxdist-72f3b7cf814beb273c5b5867c47a7a84daf50ac1.tar.gz
ptxdist-72f3b7cf814beb273c5b5867c47a7a84daf50ac1.tar.xz
rules/vendor-tweaks/abbcc.make
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunk@1507 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'scripts/kconfig/mconf.c')
-rw-r--r--scripts/kconfig/mconf.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index 93a2683af..45028639f 100644
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -607,6 +607,7 @@ static void conf_choice(struct menu *menu)
struct symbol *active;
int stat;
+ active = sym_get_choice_value(menu->sym);
while (1) {
cprint_init();
cprint("--title");
@@ -618,24 +619,32 @@ static void conf_choice(struct menu *menu)
cprint("6");
current_menu = menu;
- active = sym_get_choice_value(menu->sym);
for (child = menu->list; child; child = child->next) {
if (!menu_is_visible(child))
continue;
cprint("%p", child);
cprint("%s", menu_get_prompt(child));
- cprint(child->sym == active ? "ON" : "OFF");
+ if (child->sym == sym_get_choice_value(menu->sym))
+ cprint("ON");
+ else if (child->sym == active)
+ cprint("SELECTED");
+ else
+ cprint("OFF");
}
stat = exec_conf();
switch (stat) {
case 0:
- if (sscanf(input_buf, "%p", &menu) != 1)
+ if (sscanf(input_buf, "%p", &child) != 1)
break;
- sym_set_tristate_value(menu->sym, yes);
+ sym_set_tristate_value(child->sym, yes);
return;
case 1:
- show_help(menu);
+ if (sscanf(input_buf, "%p", &child) == 1) {
+ show_help(child);
+ active = child->sym;
+ } else
+ show_help(menu);
break;
case 255:
return;