summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>2020-09-23 12:34:16 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-09-25 16:28:04 +0200
commitc7dcac9de597f006fdc8c2680eb25e92ff62df7d (patch)
tree3d3b0d99d33124916030fcad73622a2768a20fe9 /common
parent98c221e3fad57f271d60406c9a1869511b26ed37 (diff)
downloadbarebox-c7dcac9de597f006fdc8c2680eb25e92ff62df7d.tar.gz
barebox-c7dcac9de597f006fdc8c2680eb25e92ff62df7d.tar.xz
common: print buildsystem version in barebox banner
When the barebox banner is enabled and printed during startup, also show information about the buildsystem version: the exact state of the barebox binary and its config. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/version.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/version.c b/common/version.c
index 8b1fd4dbe7..54cec5335d 100644
--- a/common/version.c
+++ b/common/version.c
@@ -10,11 +10,17 @@ const char release_string[] =
"barebox-" UTS_RELEASE;
EXPORT_SYMBOL(release_string);
+const char buildsystem_version_string[] =
+ BUILDSYSTEM_VERSION;
+EXPORT_SYMBOL(buildsystem_version_string);
+
#ifdef CONFIG_BANNER
void barebox_banner (void)
{
printf("\n\n");
pr_info("%s", version_string);
+ if (strlen(buildsystem_version_string) > 0)
+ pr_info("Buildsystem version: %s", buildsystem_version_string);
printf("\n\n");
pr_info("Board: %s\n", barebox_get_model());
}