mb/amd/mandolin: Drop SPD eeproms in devicetree
[coreboot.git] / src / lib / version.c
blob5b24c5cae1c47428f5ecf2de1dc733d91db4d35a
1 #include <version.h>
2 #include <build.h>
4 #ifndef CONFIG_MAINBOARD_VENDOR
5 #error CONFIG_MAINBOARD_VENDOR not defined
6 #endif
7 #ifndef CONFIG_MAINBOARD_PART_NUMBER
8 #error CONFIG_MAINBOARD_PART_NUMBER not defined
9 #endif
11 #ifndef COREBOOT_VERSION
12 #error COREBOOT_VERSION not defined
13 #endif
14 #ifndef COREBOOT_BUILD
15 #error COREBOOT_BUILD not defined
16 #endif
18 #ifndef COREBOOT_COMPILE_TIME
19 #error COREBOOT_COMPILE_TIME not defined
20 #endif
22 #ifndef COREBOOT_EXTRA_VERSION
23 #define COREBOOT_EXTRA_VERSION ""
24 #endif
26 const char mainboard_vendor[] = CONFIG_MAINBOARD_VENDOR;
27 const char mainboard_part_number[] = CONFIG_MAINBOARD_PART_NUMBER;
29 const char coreboot_version[] = COREBOOT_VERSION;
30 const char coreboot_extra_version[] = COREBOOT_EXTRA_VERSION;
31 const char coreboot_build[] = COREBOOT_BUILD;
32 const unsigned int coreboot_version_timestamp = COREBOOT_VERSION_TIMESTAMP;
33 const unsigned int coreboot_major_revision = COREBOOT_MAJOR_VERSION;
34 const unsigned int coreboot_minor_revision = COREBOOT_MINOR_VERSION;
36 const char coreboot_compile_time[] = COREBOOT_COMPILE_TIME;
37 const char coreboot_dmi_date[] = COREBOOT_DMI_DATE;
39 const struct bcd_date coreboot_build_date = {
40 .century = 0x20,
41 .year = COREBOOT_BUILD_YEAR_BCD,
42 .month = COREBOOT_BUILD_MONTH_BCD,
43 .day = COREBOOT_BUILD_DAY_BCD,
44 .weekday = COREBOOT_BUILD_WEEKDAY_BCD,
47 const unsigned int asl_revision = ASL_VERSION;