kconfig: expand by default the rootmenu's prompt
authorArnaud Lacombe <lacombar@gmail.com>
Fri, 10 Sep 2010 01:17:26 +0000 (21:17 -0400)
committerArnaud Lacombe <lacombar@gmail.com>
Sun, 19 Sep 2010 22:19:53 +0000 (18:19 -0400)
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Michal Marek <mmarek@suse.cz>
scripts/kconfig/zconf.y

index e9b14efd74147509728a85943371dd00e131e5f8..2abd3c7ff15d91d25679a4cec6f1ff21da38fb23 100644 (file)
@@ -502,6 +502,10 @@ void conf_parse(const char *name)
                prop = prop_alloc(P_DEFAULT, modules_sym);
                prop->expr = expr_alloc_symbol(sym_lookup("MODULES", 0));
        }
+
+       rootmenu.prompt->text = _(rootmenu.prompt->text);
+       rootmenu.prompt->text = sym_expand_string_value(rootmenu.prompt->text);
+
        menu_finalize(&rootmenu);
        for_all_symbols(i, sym) {
                if (sym_check_deps(sym))