audk/EmbeddedPkg
Chun-Yi Lee 6852f6984b EmbeddedPkg/VirtualRealTimeClockLib: Support SOURCE_DATE_EPOCH
RISC-V ovmf used VirtualRealTimeClockLib but the default epoch is a
compilation time. It causes that the RISC-V ovmf binary image is NOT
reproducible.

This patch added the support of SOURCE_DATE_EPOCH by printenv command.
If SOURCE_DATE_EPOCH be found then we use it as BUILD_EPOCH. Otherwise
we run date command for setting BUILD_EPOCH.

For distributions want a reproducible RISC-V ovmf image, they should
export SOURCE_DATE_EPOCH environment variable before building ovmf.

References: https://reproducible-builds.org/docs/source-date-epoch/
Cc: Pete Batard <pete@akeo.ie>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: "Lee, Chun-Yi" <jlee@suse.com>
2024-07-04 19:05:45 +00:00
..
Application EmbeddedPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Drivers EmbeddedPkg: Update the comments of ReadKeyStroke and ReadKeyStrokeEx 2024-04-03 10:25:06 +08:00
EmbeddedMonotonicCounter EmbeddedPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
GdbStub EmbeddedPkg: Remove duplicated words 2022-09-05 13:52:51 +00:00
Include EmbeddedPkg: Align RealTimeClock function headers with return values 2024-02-09 22:16:32 +00:00
Library EmbeddedPkg/VirtualRealTimeClockLib: Support SOURCE_DATE_EPOCH 2024-07-04 19:05:45 +00:00
MetronomeDxe EmbeddedPkg/MetronomeDxe: Update outdated lower bound comment 2022-11-29 19:39:43 +00:00
RealTimeClockRuntimeDxe EmbeddedPkg: Align RealTimeClock function headers with return values 2024-02-09 22:16:32 +00:00
ResetRuntimeDxe EmbeddedPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Scripts/LauterbachT32 EmbeddedPkg/Scripts/LauterbachT32: Fix EfiLoadDxe.cmm 2024-02-27 17:17:38 +00:00
SimpleTextInOutSerial EmbeddedPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Test/Mock EmbeddedPkg: Add DtPlatformLoaderLib gmock support 2024-01-03 13:43:18 +00:00
Universal/MmcDxe EmbeddedPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
EmbeddedPkg.ci.yaml EmbeddedPkg/.ci.yaml: add temporary workaround ECC exception 2024-07-02 13:08:04 +00:00
EmbeddedPkg.dec EmbeddedPkg: Add PcdPrePiCpuIoSize width for LOONGARCH64 2024-02-06 23:51:47 +08:00
EmbeddedPkg.dsc EmbeddedPkg: Remove RVCT support 2022-05-13 14:58:54 +00:00