提交 c33724a4 编写于 作者: M Michal Marek

kconfig: Do not record timestamp in auto.conf and autoconf.h

Timestamps in file data are useless and there is already one in .config
Signed-off-by: NMichal Marek <mmarek@suse.cz>
上级 2b2112f6
...@@ -784,7 +784,6 @@ int conf_write_autoconf(void) ...@@ -784,7 +784,6 @@ int conf_write_autoconf(void)
const char *str; const char *str;
const char *name; const char *name;
FILE *out, *tristate, *out_h; FILE *out, *tristate, *out_h;
time_t now;
int i; int i;
sym_clear_all_valid(); sym_clear_all_valid();
...@@ -811,22 +810,19 @@ int conf_write_autoconf(void) ...@@ -811,22 +810,19 @@ int conf_write_autoconf(void)
return 1; return 1;
} }
time(&now);
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"
"#\n", "#\n",
rootmenu.prompt->text, ctime(&now)); rootmenu.prompt->text);
fprintf(tristate, "#\n" fprintf(tristate, "#\n"
"# Automatically generated - do not edit\n" "# Automatically generated - do not edit\n"
"\n"); "\n");
fprintf(out_h, "/*\n" fprintf(out_h, "/*\n"
" * Automatically generated C config: don't edit\n" " * Automatically generated C config: don't edit\n"
" * %s\n" " * %s\n"
" * %s"
" */\n", " */\n",
rootmenu.prompt->text, ctime(&now)); rootmenu.prompt->text);
for_all_symbols(i, sym) { for_all_symbols(i, sym) {
sym_calc_value(sym); sym_calc_value(sym);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册