summaryrefslogtreecommitdiffstats
path: root/common/version.c
blob: d33f4d0078511b28681df66507ad9ce9802c6caa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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;

	pr_info("\n\n%s\n\n", version_string);
	pr_info("Board: %s\n", board);
}