Martin Roth | fb8876d | 2022-08-07 15:12:12 -0600 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 3 | #include <version.h> |
Stefan Reinauer | b4d3af8 | 2010-02-11 03:21:29 +0000 | [diff] [blame] | 4 | #include <build.h> |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 5 | |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 6 | #ifndef COREBOOT_VERSION |
Paul Menzel | 3030eaf | 2016-07-11 09:01:22 +0200 | [diff] [blame] | 7 | #error COREBOOT_VERSION not defined |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 8 | #endif |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 9 | #ifndef COREBOOT_BUILD |
Paul Menzel | 3030eaf | 2016-07-11 09:01:22 +0200 | [diff] [blame] | 10 | #error COREBOOT_BUILD not defined |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 11 | #endif |
| 12 | |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 13 | #ifndef COREBOOT_COMPILE_TIME |
Paul Menzel | 3030eaf | 2016-07-11 09:01:22 +0200 | [diff] [blame] | 14 | #error COREBOOT_COMPILE_TIME not defined |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 15 | #endif |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 16 | |
Paul Menzel | 3030eaf | 2016-07-11 09:01:22 +0200 | [diff] [blame] | 17 | #ifndef COREBOOT_EXTRA_VERSION |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 18 | #define COREBOOT_EXTRA_VERSION "" |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 19 | #endif |
| 20 | |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 21 | const char coreboot_version[] = COREBOOT_VERSION; |
| 22 | const char coreboot_extra_version[] = COREBOOT_EXTRA_VERSION; |
| 23 | const char coreboot_build[] = COREBOOT_BUILD; |
Vladimir Serbinenko | 6ead253 | 2014-08-23 01:08:09 +0200 | [diff] [blame] | 24 | const unsigned int coreboot_version_timestamp = COREBOOT_VERSION_TIMESTAMP; |
Elyes HAOUAS | 94ad376 | 2019-02-15 17:39:56 +0100 | [diff] [blame] | 25 | const unsigned int coreboot_major_revision = COREBOOT_MAJOR_VERSION; |
| 26 | const unsigned int coreboot_minor_revision = COREBOOT_MINOR_VERSION; |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 27 | |
Paul Menzel | 3030eaf | 2016-07-11 09:01:22 +0200 | [diff] [blame] | 28 | const char coreboot_compile_time[] = COREBOOT_COMPILE_TIME; |
| 29 | const char coreboot_dmi_date[] = COREBOOT_DMI_DATE; |
Kyösti Mälkki | c36af7b | 2014-11-18 12:41:16 +0200 | [diff] [blame] | 30 | |
| 31 | const struct bcd_date coreboot_build_date = { |
| 32 | .century = 0x20, |
| 33 | .year = COREBOOT_BUILD_YEAR_BCD, |
| 34 | .month = COREBOOT_BUILD_MONTH_BCD, |
| 35 | .day = COREBOOT_BUILD_DAY_BCD, |
| 36 | .weekday = COREBOOT_BUILD_WEEKDAY_BCD, |
| 37 | }; |
Elyes HAOUAS | 26071aa | 2019-02-15 08:21:33 +0100 | [diff] [blame] | 38 | |
| 39 | const unsigned int asl_revision = ASL_VERSION; |