blob: 84718328f0f59f2b3fd352ead74c66bfc0a7b199 [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 Reinauer08670622009-06-30 15:17:49 +00006#ifndef CONFIG_MAINBOARD_VENDOR
7#error CONFIG_MAINBOARD_VENDOR not defined
Eric Biederman8ca8d762003-04-22 19:02:15 +00008#endif
Stefan Reinauer08670622009-06-30 15:17:49 +00009#ifndef CONFIG_MAINBOARD_PART_NUMBER
Paul Menzel3030eaf2016-07-11 09:01:22 +020010#error CONFIG_MAINBOARD_PART_NUMBER not defined
Eric Biederman8ca8d762003-04-22 19:02:15 +000011#endif
12
Stefan Reinauerf8ee1802008-01-18 15:08:58 +000013#ifndef COREBOOT_VERSION
Paul Menzel3030eaf2016-07-11 09:01:22 +020014#error COREBOOT_VERSION not defined
Eric Biederman8ca8d762003-04-22 19:02:15 +000015#endif
Stefan Reinauerf8ee1802008-01-18 15:08:58 +000016#ifndef COREBOOT_BUILD
Paul Menzel3030eaf2016-07-11 09:01:22 +020017#error COREBOOT_BUILD not defined
Eric Biederman8ca8d762003-04-22 19:02:15 +000018#endif
19
Stefan Reinauerf8ee1802008-01-18 15:08:58 +000020#ifndef COREBOOT_COMPILE_TIME
Paul Menzel3030eaf2016-07-11 09:01:22 +020021#error COREBOOT_COMPILE_TIME not defined
Eric Biederman8ca8d762003-04-22 19:02:15 +000022#endif
Eric Biederman8ca8d762003-04-22 19:02:15 +000023
Paul Menzel3030eaf2016-07-11 09:01:22 +020024#ifndef COREBOOT_EXTRA_VERSION
Stefan Reinauerf8ee1802008-01-18 15:08:58 +000025#define COREBOOT_EXTRA_VERSION ""
Eric Biederman8ca8d762003-04-22 19:02:15 +000026#endif
27
Stefan Reinauer08670622009-06-30 15:17:49 +000028const char mainboard_vendor[] = CONFIG_MAINBOARD_VENDOR;
29const char mainboard_part_number[] = CONFIG_MAINBOARD_PART_NUMBER;
Eric Biederman8ca8d762003-04-22 19:02:15 +000030
Stefan Reinauerf8ee1802008-01-18 15:08:58 +000031const char coreboot_version[] = COREBOOT_VERSION;
32const char coreboot_extra_version[] = COREBOOT_EXTRA_VERSION;
33const char coreboot_build[] = COREBOOT_BUILD;
Vladimir Serbinenko6ead2532014-08-23 01:08:09 +020034const unsigned int coreboot_version_timestamp = COREBOOT_VERSION_TIMESTAMP;
Elyes HAOUAS94ad3762019-02-15 17:39:56 +010035const unsigned int coreboot_major_revision = COREBOOT_MAJOR_VERSION;
36const unsigned int coreboot_minor_revision = COREBOOT_MINOR_VERSION;
Eric Biederman8ca8d762003-04-22 19:02:15 +000037
Paul Menzel3030eaf2016-07-11 09:01:22 +020038const char coreboot_compile_time[] = COREBOOT_COMPILE_TIME;
39const char coreboot_dmi_date[] = COREBOOT_DMI_DATE;
Kyösti Mälkkic36af7b2014-11-18 12:41:16 +020040
41const struct bcd_date coreboot_build_date = {
42 .century = 0x20,
43 .year = COREBOOT_BUILD_YEAR_BCD,
44 .month = COREBOOT_BUILD_MONTH_BCD,
45 .day = COREBOOT_BUILD_DAY_BCD,
46 .weekday = COREBOOT_BUILD_WEEKDAY_BCD,
47};
Elyes HAOUAS26071aa2019-02-15 08:21:33 +010048
49const unsigned int asl_revision = ASL_VERSION;