From 60cf4aa958db901f662915751e191de6fa56dfb7 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Thu, 23 Jul 2026 14:39:19 +0200 Subject: [PATCH] build: make GL.iNet metadata reproducible The GL.iNet specific metadata contains a `date`-field which takes the current timestamp instead of using SOURCE_DATE_EPOCH. This commits make use of the variable, if available. Signed-off-by: Paul Spooren --- include/image-commands.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/image-commands.mk b/include/image-commands.mk index 32aea3e5436..e6b526dc56a 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -110,7 +110,7 @@ metadata_gl_json = \ $(if $(filter 1.0,$(compat_version)),"supported_devices":[$(call metadata_devices,$(SUPPORTED_DEVICES))]$(comma)) \ "version": { \ "release": "$(call json_quote,$(VERSION_NUMBER))", \ - "date": "$(shell TZ='Asia/Chongqing' date '+%Y%m%d%H%M%S')", \ + "date": "$(shell TZ='Asia/Chongqing' date $(if $(SOURCE_DATE_EPOCH),-d@$(SOURCE_DATE_EPOCH)) '+%Y%m%d%H%M%S')", \ "dist": "$(call json_quote,$(VERSION_DIST))", \ "version": "$(call json_quote,$(VERSION_NUMBER))", \ "revision": "$(call json_quote,$(REVISION))", \ -- 2.47.3