Skip to content

Commit

Permalink
kconfig: do not record timestamp in .config
Browse files Browse the repository at this point in the history
Signed-off-by: Arnaud Lacombe <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
lacombar authored and michal42 committed May 24, 2011
1 parent 6ef3d36 commit bdebd48
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
5 changes: 0 additions & 5 deletions Documentation/kbuild/kconfig.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ KCONFIG_OVERWRITECONFIG
If you set KCONFIG_OVERWRITECONFIG in the environment, Kconfig will not
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'

Expand Down
12 changes: 1 addition & 11 deletions scripts/kconfig/confdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,8 +560,6 @@ int conf_write(const char *name)
const char *basename;
const char *str;
char dirname[PATH_MAX+1], tmpname[PATH_MAX+1], newname[PATH_MAX+1];
time_t now;
int use_timestamp = 1;
char *env;

dirname[0] = 0;
Expand Down Expand Up @@ -598,19 +596,11 @@ int conf_write(const char *name)
if (!out)
return 1;

time(&now);
env = getenv("KCONFIG_NOTIMESTAMP");
if (env && *env)
use_timestamp = 0;

fprintf(out, _("#\n"
"# Automatically generated make config: don't edit\n"
"# %s\n"
"%s%s"
"#\n"),
rootmenu.prompt->text,
use_timestamp ? "# " : "",
use_timestamp ? ctime(&now) : "");
rootmenu.prompt->text);

if (!conf_get_changed())
sym_clear_all_valid();
Expand Down

0 comments on commit bdebd48

Please sign in to comment.