revision.c 950 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
/*
 * This work is part of the White Rabbit project
 *
 * Copyright (C) 2012 - 2015 CERN (www.cern.ch)
 * Author: Alessandro Rubini <rubini@gnudd.com>
 * Author: Adam Wujek <adam.wujek@cern.ch>
 *
 * Released according to the GNU GPL, version 2 or any later version.
 */
10 11 12
#include "softpll_ng.h"
#include "revision.h"
const char *build_revision = stats.commit_id;
13

14 15
const char *build_date = stats.build_date;
const char *build_time = stats.build_time;
Adam Wujek's avatar
Adam Wujek committed
16
const char *build_by = stats.build_by;
17 18 19 20 21 22 23
/*
 * We export softpll internal status to the ARM cpu, for SNMP. Thus,
 * we place this structure at a known address in the linker script
 */
struct spll_stats stats __attribute__((section(".stats"))) = {
	.magic = 0x5b1157a7,
	.ver = SPLL_STATS_VER,
24
#ifdef CONFIG_DETERMINISTIC_BINARY
25
	.build_date = "",
Adam Wujek's avatar
Adam Wujek committed
26 27
	.build_time = "",
	.build_by = "",
28
#else
29 30
	.build_date = __DATE__,
	.build_time = __TIME__,
Adam Wujek's avatar
Adam Wujek committed
31
	.build_by = __GIT_USR__,
32
#endif
33 34
	.commit_id = __GIT_VER__,
};