File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,13 @@ static const char *conf_get_autoconfig_name(void)
223
223
return name ? name : "include/config/auto.conf" ;
224
224
}
225
225
226
+ static const char * conf_get_autoheader_name (void )
227
+ {
228
+ char * name = getenv ("KCONFIG_AUTOHEADER" );
229
+
230
+ return name ? name : "include/generated/autoconf.h" ;
231
+ }
232
+
226
233
static int conf_set_sym_val (struct symbol * sym , int def , int def_flags , char * p )
227
234
{
228
235
char * p2 ;
@@ -1092,9 +1099,7 @@ int conf_write_autoconf(int overwrite)
1092
1099
fclose (out );
1093
1100
fclose (out_h );
1094
1101
1095
- name = getenv ("KCONFIG_AUTOHEADER" );
1096
- if (!name )
1097
- name = "include/generated/autoconf.h" ;
1102
+ name = conf_get_autoheader_name ();
1098
1103
if (make_parent_dir (name ))
1099
1104
return 1 ;
1100
1105
if (rename (".tmpconfig.h" , name ))
You can’t perform that action at this time.
0 commit comments