summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/sitecustomize.py
diff options
context:
space:
mode:
authorChun-Yi Lee <jlee@suse.com>2024-04-12 15:07:33 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-07-04 19:05:45 +0000
commit6852f6984bdab86a1662e89e1ef0f3abc39559b6 (patch)
treea1f7ec21d5f82bd7f25e7d9fa7c84c19a920ac74 /BaseTools/Source/Python/sitecustomize.py
parent8430c69dc1d92085c3ef22370bfbb4d41ef2e94c (diff)
downloadedk2-6852f6984bdab86a1662e89e1ef0f3abc39559b6.zip
edk2-6852f6984bdab86a1662e89e1ef0f3abc39559b6.tar.gz
edk2-6852f6984bdab86a1662e89e1ef0f3abc39559b6.tar.bz2
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>
Diffstat (limited to 'BaseTools/Source/Python/sitecustomize.py')
0 files changed, 0 insertions, 0 deletions