summaryrefslogtreecommitdiffstats
path: root/src/lib/version.c
blob: 4ec1eb65e100aafce9c388dc79a81fc26fd19147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include <version.h>
#include <build.h>

#ifndef CONFIG_MAINBOARD_VENDOR
#error CONFIG_MAINBOARD_VENDOR not defined
#endif
#ifndef CONFIG_MAINBOARD_PART_NUMBER
#error  CONFIG_MAINBOARD_PART_NUMBER not defined
#endif

#ifndef COREBOOT_VERSION
#error  COREBOOT_VERSION not defined
#endif
#ifndef COREBOOT_BUILD
#error  COREBOOT_BUILD not defined
#endif

#ifndef COREBOOT_COMPILE_TIME
#error  COREBOOT_COMPILE_TIME not defined
#endif
#ifndef COREBOOT_COMPILE_BY
#error  COREBOOT_COMPILE_BY not defined
#endif
#ifndef COREBOOT_COMPILE_HOST
#error  COREBOOT_COMPILE_HOST not defined
#endif

#ifndef COREBOOT_COMPILER
#error  COREBOOT_COMPILER not defined
#endif
#ifndef COREBOOT_LINKER
#error  COREBOOT_LINKER not defined
#endif
#ifndef COREBOOT_ASSEMBLER
#error  COREBOOT_ASSEMBLER not defined
#endif

#ifndef  COREBOOT_EXTRA_VERSION
#define COREBOOT_EXTRA_VERSION ""
#endif

const char mainboard_vendor[] = CONFIG_MAINBOARD_VENDOR;
const char mainboard_part_number[] = CONFIG_MAINBOARD_PART_NUMBER;

const char coreboot_version[] = COREBOOT_VERSION;
const char coreboot_extra_version[] = COREBOOT_EXTRA_VERSION;
const char coreboot_build[] = COREBOOT_BUILD;

const char coreboot_compile_time[]   = COREBOOT_COMPILE_TIME;
const char coreboot_compile_by[]     = COREBOOT_COMPILE_BY;
const char coreboot_compile_host[]   = COREBOOT_COMPILE_HOST;
const char coreboot_compile_domain[] = COREBOOT_COMPILE_DOMAIN;
const char coreboot_compiler[]       = COREBOOT_COMPILER;
const char coreboot_linker[]         = COREBOOT_LINKER;
const char coreboot_assembler[]      = COREBOOT_ASSEMBLER;