diff --git a/common/Makefile b/common/Makefile index a9abcd1..4e9681f 100644 --- a/common/Makefile +++ b/common/Makefile @@ -11,7 +11,7 @@ obj-y += restart.o obj-y += poweroff.o obj-$(CONFIG_AUTO_COMPLETE) += complete.o -obj-$(CONFIG_BANNER) += version.o +obj-y += version.o obj-$(CONFIG_BAREBOX_UPDATE) += bbu.o obj-$(CONFIG_BINFMT) += binfmt.o obj-$(CONFIG_BLOCK) += block.o diff --git a/common/oftree.c b/common/oftree.c index 40eb35f..8a2ede4 100644 --- a/common/oftree.c +++ b/common/oftree.c @@ -128,6 +128,7 @@ if (!node) return -ENOMEM; + of_property_write_string(node, "barebox-version", release_string); err = of_property_write_string(node, "bootargs", str); 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 @@ "barebox-" UTS_RELEASE; EXPORT_SYMBOL(release_string); +#ifdef CONFIG_BANNER void barebox_banner (void) { printf("\n\n"); @@ -17,3 +18,4 @@ printf("\n\n"); pr_info("Board: %s\n", barebox_get_model()); } +#endif