diff options
Diffstat (limited to 'common/version.c')
-rw-r--r-- | common/version.c | 13 |
1 files changed, 13 insertions, 0 deletions
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 <common.h> +#include <reloc.h> +#include <generated/utsrelease.h> + +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")); +} + |