提交 d802b50f 编写于 作者: S Sam Ravnborg 提交者: Sam Ravnborg

kconfig/menuconfig: do not hardcode '.config'

Export and use the function conf_get_configname()
to retreive the default configuration filename.

Suggested by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 87c94bfb
......@@ -64,6 +64,7 @@ int zconf_lineno(void);
char *zconf_curname(void);
/* confdata.c */
const char *conf_get_configname(void);
char *conf_get_default_confname(void);
void sym_set_change_count(int count);
void sym_add_change_count(int count);
......
......@@ -905,7 +905,7 @@ int main(int ac, char **av)
init_wsize();
reset_dialog();
init_dialog(NULL);
set_config_filename(".config");
set_config_filename(conf_get_configname());
do {
conf(&rootmenu);
dialog_clear();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册