From: Paul Spooren Date: Thu, 23 Jul 2026 12:39:19 +0000 (+0200) Subject: build: make GL.iNet metadata reproducible X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;p=thirdparty%2Fopenwrt.git 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 --- 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))", \