barebox/common/version.c
Sascha Hauer 386681e294 of: Print model name in banner
If we know the model name from the devicetree print this
in the banner instead of the hardcoded board name.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-09 20:57:23 +02:00

22 lines
400 B
C

#include <common.h>
#include <generated/compile.h>
#include <generated/utsrelease.h>
#include <of.h>
const char version_string[] =
"barebox " UTS_RELEASE " " UTS_VERSION "\n";
EXPORT_SYMBOL(version_string);
void barebox_banner (void)
{
const char *board;
board = of_get_model();
if (!board)
board = CONFIG_BOARDINFO;
printf("\n\n%s\n\n", version_string);
printf("Board: %s\n", board);
}