gtj writes in http://bugs.uclibc.org/view.php?id=55
authorEric Andersen <andersen@codepoet.org>
Fri, 25 Feb 2005 02:32:25 +0000 (02:32 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 25 Feb 2005 02:32:25 +0000 (02:32 -0000)
The version of mconf used by buildroot doesn't handle "menuconfig" correctly.
Instead of displaying the proper submenu, it just displays the menuconfig
option itself again.

This patch adds the proper code to mconf. Only 6 lines of code.

package/config/mconf.c

index 0db6f8f6c8a8d1d76e660194b0f924d1b82eeb22..22ba1f302f2bc3f61e7eb5596ddf5ed5b86b6470 100644 (file)
@@ -308,6 +308,12 @@ 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) {