From 3f1ff6b730ec17ce635fcf38770358d8042e80b4 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 1 Apr 2011 15:13:55 +0200 Subject: move version_string to seperate file In a noninteractive environment barebox will be compiled without command support. So move version_string to a seperate file which is compiled unconditionally. Also, display the banner when the simple console support is used. Signed-off-by: Sascha Hauer --- common/version.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 common/version.c (limited to 'common/version.c') diff --git a/common/version.c b/common/version.c new file mode 100644 index 0000000000..945475fc3d --- /dev/null +++ b/common/version.c @@ -0,0 +1,13 @@ +#include +#include +#include + +const char version_string[] = + "barebox " UTS_RELEASE " (" __DATE__ " - " __TIME__ ")"; + +void barebox_banner (void) +{ + printf (RELOC("\n\n%s\n\n"), RELOC_VAR(version_string)); + printf(RELOC("Board: " CONFIG_BOARDINFO "\n")); +} + -- cgit v1.2.3