OSDN Git Service

Let mconfig support options specified using the menuconfig directive
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Mon, 21 Mar 2005 16:38:20 +0000 (16:38 -0000)
committerPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Mon, 21 Mar 2005 16:38:20 +0000 (16:38 -0000)
again (this code snippet seems to have vanished somewhere between the
original Linux 2.6 kconfig code and here).

extra/config/mconf.c

index 1c9daf8..a459ec8 100644 (file)
@@ -308,6 +308,11 @@ static void build_conf(struct menu *menu)
                        return;
                }
        } else {
+               if (menu == current_menu) {
+                       cprint_tag(":%p", menu);
+                       cprint_name("---%*c%s", indent + 1, ' ', menu_get_prompt(menu));
+                       goto conf_childs;
+               }
                child_count++;
                val = sym_get_tristate_value(sym);
                if (sym_is_choice_value(sym) && val == yes) {