Skip to content

Commit

Permalink
kconfig/menuconfig: do not hardcode '.config'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sam Ravnborg authored and Sam Ravnborg committed May 2, 2007
1 parent 87c94bf commit d802b50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/kconfig/lkc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion scripts/kconfig/mconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d802b50

Please sign in to comment.