diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2021-04-07 23:17:50 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-04-09 06:08:10 +0000 |
commit | cf68f34fc2099b9966953163bfe5f891bca46f25 (patch) | |
tree | a98ccc040f591d35acf882627a321b60225ffb93 /util/genbuild_h/genbuild_h.sh | |
parent | ada431e6d4a61cfc4749806d54e83fb6d1570aec (diff) |
util/genbuild_h: add COREBOOT_BUILD_EPOCH seconds since epoch
To use SOURCE_DATE_EPOCH for the kernel build, extend genbuild_h to
contain COREBOOT_BUILD_EPOCH.
Change-Id: Iaa79d3e7df8101a1ba1b37a361d8992f7eab2d52
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51362
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/genbuild_h/genbuild_h.sh')
-rwxr-xr-x | util/genbuild_h/genbuild_h.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/genbuild_h/genbuild_h.sh b/util/genbuild_h/genbuild_h.sh index b82a74b513..10ca0c5fa3 100755 --- a/util/genbuild_h/genbuild_h.sh +++ b/util/genbuild_h/genbuild_h.sh @@ -68,6 +68,7 @@ printf "#define COREBOOT_BUILD_YEAR_BCD 0x$(our_date "$DATE" +%y)\n" printf "#define COREBOOT_BUILD_MONTH_BCD 0x$(our_date "$DATE" +%m)\n" printf "#define COREBOOT_BUILD_DAY_BCD 0x$(our_date "$DATE" +%d)\n" printf "#define COREBOOT_BUILD_WEEKDAY_BCD 0x$(our_date "$DATE" +%w)\n" +printf "#define COREBOOT_BUILD_EPOCH \"$(our_date "$DATE" +%s)\"\n" printf "#define COREBOOT_DMI_DATE \"$(our_date "$DATE" +%m/%d/%Y)\"\n" printf "\n" printf "#define COREBOOT_COMPILE_TIME \"$(our_date "$DATE" +%T)\"\n" |