summaryrefslogtreecommitdiffstats
path: root/common/version.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-03-19 11:29:02 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-03-22 09:14:02 +0100
commite96dc23280c43dd6b026ea71bcbaf3353abb4c83 (patch)
tree3d7cda1a4e7d3a447e99a788bbf11104b894a956 /common/version.c
parentd84ada844b2fdf99a3b394ded66d9b44f5909f9e (diff)
downloadbarebox-e96dc23280c43dd6b026ea71bcbaf3353abb4c83.tar.gz
of: Pass barebox version to kernel
Pass the barebox version to Linux in case somebody is interested in it under Linux. We use put the version under /chosen/barebox-version and it can be read under Linux in /sys/firmware/devicetree/base/chosen/barebox-version. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/version.c')
-rw-r--r--common/version.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/version.c b/common/version.c
index f37cb55..8b1fd4d 100644
--- a/common/version.c
+++ b/common/version.c
@@ -10,6 +10,7 @@ const char release_string[] =
"barebox-" UTS_RELEASE;
EXPORT_SYMBOL(release_string);
+#ifdef CONFIG_BANNER
void barebox_banner (void)
{
printf("\n\n");
@@ -17,3 +18,4 @@ void barebox_banner (void)
printf("\n\n");
pr_info("Board: %s\n", barebox_get_model());
}
+#endif