mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-21 00:58:28 +08:00
kconfig: fix time ordering of writes to .kconfig.d and include/linux/autoconf.h
Since .kconfig.d is used as a make dependency of include/linux/autoconf.h, it should be written earlier than the header file, to avoid a subsequent rebuild to consider the header outdated. Signed-Off-By: Jan Beulich <jbeulich@novell.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
This commit is contained in:
parent
8cab77a2f8
commit
dc9a49a4af
@ -374,6 +374,7 @@ int conf_write(const char *name)
|
|||||||
out_h = fopen(".tmpconfig.h", "w");
|
out_h = fopen(".tmpconfig.h", "w");
|
||||||
if (!out_h)
|
if (!out_h)
|
||||||
return 1;
|
return 1;
|
||||||
|
file_write_dep(NULL);
|
||||||
}
|
}
|
||||||
sym = sym_lookup("KERNELVERSION", 0);
|
sym = sym_lookup("KERNELVERSION", 0);
|
||||||
sym_calc_value(sym);
|
sym_calc_value(sym);
|
||||||
@ -512,7 +513,6 @@ int conf_write(const char *name)
|
|||||||
if (out_h) {
|
if (out_h) {
|
||||||
fclose(out_h);
|
fclose(out_h);
|
||||||
rename(".tmpconfig.h", "include/linux/autoconf.h");
|
rename(".tmpconfig.h", "include/linux/autoconf.h");
|
||||||
file_write_dep(NULL);
|
|
||||||
}
|
}
|
||||||
if (!name || basename != conf_def_filename) {
|
if (!name || basename != conf_def_filename) {
|
||||||
if (!name)
|
if (!name)
|
||||||
|
Loading…
Reference in New Issue
Block a user