Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: 6852f6984bdab86a1662e89e1ef0f3abc39559b6
https://github.com/tianocore/edk2/commit/6852f6984bdab86a1662e89e1ef0f3abc39559b6
Author: Chun-Yi Lee <[email protected]>
Date: 2024-07-04 (Thu, 04 Jul 2024)
Changed paths:
M EmbeddedPkg/Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.inf
Log Message:
-----------
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 <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Signed-off-by: "Lee, Chun-Yi" <[email protected]>
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits