Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 1 | #include <version.h> |
Stefan Reinauer | b4d3af8 | 2010-02-11 03:21:29 +0000 | [diff] [blame] | 2 | #include <build.h> |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 3 | |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 4 | #ifndef CONFIG_MAINBOARD_VENDOR |
| 5 | #error CONFIG_MAINBOARD_VENDOR not defined |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 6 | #endif |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 7 | #ifndef CONFIG_MAINBOARD_PART_NUMBER |
| 8 | #error CONFIG_MAINBOARD_PART_NUMBER not defined |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 9 | #endif |
| 10 | |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 11 | #ifndef COREBOOT_VERSION |
| 12 | #error COREBOOT_VERSION not defined |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 13 | #endif |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 14 | #ifndef COREBOOT_BUILD |
| 15 | #error COREBOOT_BUILD not defined |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 16 | #endif |
| 17 | |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 18 | #ifndef COREBOOT_COMPILE_TIME |
| 19 | #error COREBOOT_COMPILE_TIME not defined |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 20 | #endif |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 21 | #ifndef COREBOOT_COMPILE_BY |
| 22 | #error COREBOOT_COMPILE_BY not defined |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 23 | #endif |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 24 | #ifndef COREBOOT_COMPILE_HOST |
| 25 | #error COREBOOT_COMPILE_HOST not defined |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 26 | #endif |
| 27 | |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 28 | #ifndef COREBOOT_EXTRA_VERSION |
| 29 | #define COREBOOT_EXTRA_VERSION "" |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 30 | #endif |
| 31 | |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 32 | const char mainboard_vendor[] = CONFIG_MAINBOARD_VENDOR; |
| 33 | const char mainboard_part_number[] = CONFIG_MAINBOARD_PART_NUMBER; |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 34 | |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 35 | const char coreboot_version[] = COREBOOT_VERSION; |
| 36 | const char coreboot_extra_version[] = COREBOOT_EXTRA_VERSION; |
| 37 | const char coreboot_build[] = COREBOOT_BUILD; |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 38 | |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 39 | const char coreboot_compile_time[] = COREBOOT_COMPILE_TIME; |
| 40 | const char coreboot_compile_by[] = COREBOOT_COMPILE_BY; |
| 41 | const char coreboot_compile_host[] = COREBOOT_COMPILE_HOST; |
| 42 | const char coreboot_compile_domain[] = COREBOOT_COMPILE_DOMAIN; |
Kyösti Mälkki | c36af7b | 2014-11-18 12:41:16 +0200 | [diff] [blame] | 43 | |
| 44 | const char coreboot_dmi_date[] = COREBOOT_DMI_DATE; |
| 45 | |
| 46 | const struct bcd_date coreboot_build_date = { |
| 47 | .century = 0x20, |
| 48 | .year = COREBOOT_BUILD_YEAR_BCD, |
| 49 | .month = COREBOOT_BUILD_MONTH_BCD, |
| 50 | .day = COREBOOT_BUILD_DAY_BCD, |
| 51 | .weekday = COREBOOT_BUILD_WEEKDAY_BCD, |
| 52 | }; |