diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2023-04-15 16:43:04 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2023-04-21 15:12:25 +0000 |
commit | 91c8c39eb82e285ff1a99e2b0102956ecc480711 (patch) | |
tree | 9d17958b299875f9dc489bb890f435cc69409e64 /src/soc/intel | |
parent | b3eb2e4f6e807ac22d98ba0f6b33452b72cbe109 (diff) |
soc/intel/braswell: Replace <build.h> with <version.h>
To use generated build.h one should have had a pre-requisite in the
Makefile. Reference coreboot_build_date from lib/version.c instead.
Change-Id: Icd6fa2ddf8aa584b0f51ba130592f227bbdad975
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74447
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/soc/intel')
-rw-r--r-- | src/soc/intel/braswell/bootblock/bootblock.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/soc/intel/braswell/bootblock/bootblock.c b/src/soc/intel/braswell/bootblock/bootblock.c index 2c9783ad5b..8ab95efa1d 100644 --- a/src/soc/intel/braswell/bootblock/bootblock.c +++ b/src/soc/intel/braswell/bootblock/bootblock.c @@ -2,7 +2,6 @@ #include <arch/io.h> #include <bootblock_common.h> -#include <build.h> #include <console/console.h> #include <device/pci_ops.h> #include <fsp/util.h> @@ -14,6 +13,7 @@ #include <soc/msr.h> #include <soc/pm.h> #include <soc/spi.h> +#include <version.h> asmlinkage void bootblock_c_entry(uint64_t base_timestamp) { @@ -79,11 +79,10 @@ static void soc_rtc_init(void) { int rtc_failed = rtc_failure(); - if (rtc_failed) { + if (rtc_failed) printk(BIOS_ERR, "RTC Failure detected. Resetting date to %x/%x/%x%x\n", - COREBOOT_BUILD_MONTH_BCD, COREBOOT_BUILD_DAY_BCD, 0x20, - COREBOOT_BUILD_YEAR_BCD); - } + coreboot_build_date.month, coreboot_build_date.day, + coreboot_build_date.century, coreboot_build_date.year); cmos_init(rtc_failed); } |