diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-03-19 11:29:02 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-03-22 09:14:02 +0100 |
commit | e96dc23280c43dd6b026ea71bcbaf3353abb4c83 (patch) | |
tree | 3d7cda1a4e7d3a447e99a788bbf11104b894a956 /common/version.c | |
parent | d84ada844b2fdf99a3b394ded66d9b44f5909f9e (diff) | |
download | barebox-e96dc23280c43dd6b026ea71bcbaf3353abb4c83.tar.gz barebox-e96dc23280c43dd6b026ea71bcbaf3353abb4c83.tar.xz |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/version.c b/common/version.c index f37cb5527f..8b1fd4dbe7 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 |