summaryrefslogtreecommitdiffstats
path: root/common/version.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-04-15 12:05:21 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-04-15 15:18:17 +0200
commit55c81081e577922a8d7d0a1d633efb7feb3560d4 (patch)
treeeaac0c4b37400bc74363a00326d306b9d7f664d9 /common/version.c
parentff879a2d4cc73046460e1fc88e5d1251bdc6dd1d (diff)
downloadbarebox-55c81081e577922a8d7d0a1d633efb7feb3560d4.tar.gz
Makefile: fix build timestamps
This patch adds the scripts/mkcompile_h from the Kernel. This gives us additional information about the build like who built this binary and with which compiler. Currently the only information used is the build timestamp and the generation number. This also fixes the build timestamp in the banner which is now correct even with consecutive builds without making clean in between. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/version.c')
-rw-r--r--common/version.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/version.c b/common/version.c
index 0af8ec1..51a8e7c 100644
--- a/common/version.c
+++ b/common/version.c
@@ -1,8 +1,10 @@
#include <common.h>
+#include <generated/compile.h>
#include <generated/utsrelease.h>
const char version_string[] =
- "barebox " UTS_RELEASE " (" __DATE__ " - " __TIME__ ")";
+ "barebox " UTS_RELEASE " " UTS_VERSION "\n";
+
void barebox_banner (void)
{