Skip to content

Commit d802b50

Browse files
Sam Ravnborgsravnborg
authored andcommitted
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>
1 parent 87c94bf commit d802b50

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎scripts/kconfig/lkc.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ int zconf_lineno(void);
6464
char *zconf_curname(void);
6565

6666
/* confdata.c */
67+
const char *conf_get_configname(void);
6768
char *conf_get_default_confname(void);
6869
void sym_set_change_count(int count);
6970
void sym_add_change_count(int count);

‎scripts/kconfig/mconf.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ int main(int ac, char **av)
905905
init_wsize();
906906
reset_dialog();
907907
init_dialog(NULL);
908-
set_config_filename(".config");
908+
set_config_filename(conf_get_configname());
909909
do {
910910
conf(&rootmenu);
911911
dialog_clear();

0 commit comments

Comments
 (0)