python3-mlcommons-loadgen: support reproducibility

Implement the SOURCE_DATE_EPOCH specification[1] for reproducible
builds. If SOURCE_DATE_EPOCH is set, use it as timestamp instead of the
current time.

[1] https://reproducible-builds.org/specs/source-date-epoch/

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Hongxu Jia
2025-09-26 16:19:12 +08:00
committed by Khem Raj
parent df688fc3c7
commit 4b589e4099
2 changed files with 45 additions and 0 deletions

View File

@@ -14,6 +14,10 @@ DEPENDS = "python3-pybind11-native"
inherit setuptools3 pypi
SRC_URI += " \
file://source-date-epoch.patch \
"
PYPI_PACKAGE = "mlcommons_loadgen"
UPSTREAM_CHECK_PYPI_PACKAGE = "mlcommons_loadgen"