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: Sam Ravnborg <sam@ravnborg.org>
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index 462256d..d0e4fa5 100644
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -905,7 +905,7 @@
init_wsize();
reset_dialog();
init_dialog(NULL);
- set_config_filename(".config");
+ set_config_filename(conf_get_configname());
do {
conf(&rootmenu);
dialog_clear();