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 authored and Khem Raj committed 2025-10-05 21:43:44 -07:00
1 parent df688fc3c7
commit 4b589e4099
2 files changed
+45

No files matched your search

@@ -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"