Commit 4d27db85 authored by Bartlomiej Grzeskowiak's avatar Bartlomiej Grzeskowiak Committed by Sukru Senli

Add timestamp to linux banner

parent 0c5cd772
diff --git a/init/version.c b/init/version.c
index 5606341..db07a6f 100644
--- a/init/version.c
+++ b/init/version.c
@@ -43,7 +43,7 @@ EXPORT_SYMBOL_GPL(init_uts_ns);
/* FIXED STRINGS! Don't touch! */
const char linux_banner[] =
"Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
- LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
+ LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " LINUX_COMPILE_TIME "\n";
const char linux_proc_banner[] =
"%s version %s"
diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h
index 959199c..6c85273 100755
--- a/scripts/mkcompile_h
+++ b/scripts/mkcompile_h
@@ -76,6 +76,7 @@ UTS_TRUNCATE="cut -b -$UTS_LEN"
echo \#define LINUX_COMPILE_BY \"`echo $LINUX_COMPILE_BY | $UTS_TRUNCATE`\"
echo \#define LINUX_COMPILE_HOST \"`echo $LINUX_COMPILE_HOST | $UTS_TRUNCATE`\"
+ echo \#define LINUX_COMPILE_TIME \"`date`\"
echo \#define LINUX_COMPILER \"`$CC -v 2>&1 | grep ' version ' | sed 's/[[:space:]]*$//'`\"
) > .tmpcompile
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment