mirror of
https://github.com/openwrt/openwrt.git
synced 2026-12-04 17:36:03 +04:00
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 <mail@aparcar.org>
This commit is contained in:
1 file changed
+1
-1
@@ -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))", \
|
||||
|
||||
Reference in new issue
Block a user