kconfig: do not record timestamp in .config
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
This commit is contained in:
parent
6ef3d36eee
commit
bdebd4892e
|
@ -48,11 +48,6 @@ KCONFIG_OVERWRITECONFIG
|
||||||
If you set KCONFIG_OVERWRITECONFIG in the environment, Kconfig will not
|
If you set KCONFIG_OVERWRITECONFIG in the environment, Kconfig will not
|
||||||
break symlinks when .config is a symlink to somewhere else.
|
break symlinks when .config is a symlink to somewhere else.
|
||||||
|
|
||||||
KCONFIG_NOTIMESTAMP
|
|
||||||
--------------------------------------------------
|
|
||||||
If this environment variable exists and is non-null, the timestamp line
|
|
||||||
in generated .config files is omitted.
|
|
||||||
|
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
Environment variables for '{allyes/allmod/allno/rand}config'
|
Environment variables for '{allyes/allmod/allno/rand}config'
|
||||||
|
|
||||||
|
|
|
@ -560,8 +560,6 @@ int conf_write(const char *name)
|
||||||
const char *basename;
|
const char *basename;
|
||||||
const char *str;
|
const char *str;
|
||||||
char dirname[PATH_MAX+1], tmpname[PATH_MAX+1], newname[PATH_MAX+1];
|
char dirname[PATH_MAX+1], tmpname[PATH_MAX+1], newname[PATH_MAX+1];
|
||||||
time_t now;
|
|
||||||
int use_timestamp = 1;
|
|
||||||
char *env;
|
char *env;
|
||||||
|
|
||||||
dirname[0] = 0;
|
dirname[0] = 0;
|
||||||
|
@ -598,19 +596,11 @@ int conf_write(const char *name)
|
||||||
if (!out)
|
if (!out)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
time(&now);
|
|
||||||
env = getenv("KCONFIG_NOTIMESTAMP");
|
|
||||||
if (env && *env)
|
|
||||||
use_timestamp = 0;
|
|
||||||
|
|
||||||
fprintf(out, _("#\n"
|
fprintf(out, _("#\n"
|
||||||
"# Automatically generated make config: don't edit\n"
|
"# Automatically generated make config: don't edit\n"
|
||||||
"# %s\n"
|
"# %s\n"
|
||||||
"%s%s"
|
|
||||||
"#\n"),
|
"#\n"),
|
||||||
rootmenu.prompt->text,
|
rootmenu.prompt->text);
|
||||||
use_timestamp ? "# " : "",
|
|
||||||
use_timestamp ? ctime(&now) : "");
|
|
||||||
|
|
||||||
if (!conf_get_changed())
|
if (!conf_get_changed())
|
||||||
sym_clear_all_valid();
|
sym_clear_all_valid();
|
||||||
|
|
Loading…
Reference in New Issue