kconfig/menuconfig: do not hardcode '.config'
authorSam Ravnborg <sam@neptun.ravnborg.org>
Sun, 1 Apr 2007 20:29:38 +0000 (22:29 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Wed, 2 May 2007 18:58:09 +0000 (20:58 +0200)
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>
scripts/kconfig/lkc.h
scripts/kconfig/mconf.c

index 9b2706a41548d3b5224caed652b2a4f74f68eed4..8a07ee4f6bd486a8cb18fec1297ef1f21dc08e82 100644 (file)
@@ -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);
index 462256d72baa9965c3521e00265b1a1054f9b78f..d0e4fa594fc799642af61d60c44bf05f7da2f315 100644 (file)
@@ -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();