blob: 43d6a4582121a873822f2bb962c7e4cf45050872 [file] [log] [blame]
Martin Rothfb8876d2022-08-07 15:12:12 -06001/* SPDX-License-Identifier: GPL-2.0-only */
2
Eric Biederman8ca8d762003-04-22 19:02:15 +00003#include <version.h>
Stefan Reinauerb4d3af82010-02-11 03:21:29 +00004#include <build.h>
Eric Biederman8ca8d762003-04-22 19:02:15 +00005
Stefan Reinauerf8ee1802008-01-18 15:08:58 +00006#ifndef COREBOOT_VERSION
Paul Menzel3030eaf2016-07-11 09:01:22 +02007#error COREBOOT_VERSION not defined
Eric Biederman8ca8d762003-04-22 19:02:15 +00008#endif
Stefan Reinauerf8ee1802008-01-18 15:08:58 +00009#ifndef COREBOOT_BUILD
Paul Menzel3030eaf2016-07-11 09:01:22 +020010#error COREBOOT_BUILD not defined
Eric Biederman8ca8d762003-04-22 19:02:15 +000011#endif
12
Stefan Reinauerf8ee1802008-01-18 15:08:58 +000013#ifndef COREBOOT_COMPILE_TIME
Paul Menzel3030eaf2016-07-11 09:01:22 +020014#error COREBOOT_COMPILE_TIME not defined
Eric Biederman8ca8d762003-04-22 19:02:15 +000015#endif
Eric Biederman8ca8d762003-04-22 19:02:15 +000016
Paul Menzel3030eaf2016-07-11 09:01:22 +020017#ifndef COREBOOT_EXTRA_VERSION
Stefan Reinauerf8ee1802008-01-18 15:08:58 +000018#define COREBOOT_EXTRA_VERSION ""
Eric Biederman8ca8d762003-04-22 19:02:15 +000019#endif
20
Stefan Reinauerf8ee1802008-01-18 15:08:58 +000021const char coreboot_version[] = COREBOOT_VERSION;
22const char coreboot_extra_version[] = COREBOOT_EXTRA_VERSION;
23const char coreboot_build[] = COREBOOT_BUILD;
Vladimir Serbinenko6ead2532014-08-23 01:08:09 +020024const unsigned int coreboot_version_timestamp = COREBOOT_VERSION_TIMESTAMP;
Elyes HAOUAS94ad3762019-02-15 17:39:56 +010025const unsigned int coreboot_major_revision = COREBOOT_MAJOR_VERSION;
26const unsigned int coreboot_minor_revision = COREBOOT_MINOR_VERSION;
Eric Biederman8ca8d762003-04-22 19:02:15 +000027
Paul Menzel3030eaf2016-07-11 09:01:22 +020028const char coreboot_compile_time[] = COREBOOT_COMPILE_TIME;
29const char coreboot_dmi_date[] = COREBOOT_DMI_DATE;
Kyösti Mälkkic36af7b2014-11-18 12:41:16 +020030
31const 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 HAOUAS26071aa2019-02-15 08:21:33 +010038
39const unsigned int asl_revision = ASL_VERSION;