Преглед на файлове

Let mconfig support options specified using the menuconfig directive
again (this code snippet seems to have vanished somewhere between the
original Linux 2.6 kconfig code and here).

Peter Kjellerstedt преди 21 години
родител
ревизия
223b81b2e7
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      extra/config/mconf.c

+ 5 - 0
extra/config/mconf.c

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