Repeater, room server, sensor, companion: propagate SOURCE_DATE_EPOCH to compiler subprocesses

Changelog: -
This commit is contained in:
tth committed 2026-12-04 01:18:20 +01:00
1 parent e440eb1a6b
commit 681d38b778
1 file changed
+6
+6
View File
@@ -121,6 +121,12 @@ else:
now = datetime.fromtimestamp(build_epoch, timezone.utc)
build_date = now.strftime("%y%m%d %H%M")[:DATE_LIMIT]
# Propagate SOURCE_DATE_EPOCH into every compiler/tool subprocess so GCC also
# evaluates any __DATE__/__TIME__ macros inside third-party libraries or the
# Arduino framework deterministically (and ccache gets 100% hits).
os.environ["SOURCE_DATE_EPOCH"] = str(build_epoch)
env["ENV"]["SOURCE_DATE_EPOCH"] = str(build_epoch)
# src/helpers/FwUpdate refuses a package built for another target: the env,
# plus the image variant when one env is released as several
# (FW_OTA_VARIANT=observer-ota -> "SenseCap_Solar_repeater-observer-ota"), or a