projects
/
openwrt
/
staging
/
mkresin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed364cd
)
build: image: use UTC for zip timestamp
author
Sungbo Eo
<
[email protected]
>
Sat, 12 Feb 2022 08:01:31 +0000
(17:01 +0900)
committer
Sungbo Eo
<
[email protected]
>
Wed, 9 Mar 2022 06:38:23 +0000
(15:38 +0900)
Zip uses DOS timestamp for mtime which is stored in local time and hence
depends on the timezone of the build system. Force zip to use UTC timezone
to make image builds more reproducible.
Signed-off-by: Sungbo Eo <
[email protected]
>
include/image-commands.mk
patch
|
blob
|
history
diff --git
a/include/image-commands.mk
b/include/image-commands.mk
index 939f5ef2db4db7afeab6f0009d926aef3055d906..21f851d2054fb2494bce35f4ae43c74f56fb9ce8 100644
(file)
--- a/
include/image-commands.mk
+++ b/
include/image-commands.mk
@@
-541,8
+541,7
@@
define Build/zip
rm -rf
[email protected]
mkdir
[email protected]
mv $@
[email protected]
/$(word 1,$(1))
-
- $(STAGING_DIR_HOST)/bin/zip -j -X \
+ TZ=UTC $(STAGING_DIR_HOST)/bin/zip -j -X \
$(if $(SOURCE_DATE_EPOCH),--mtime="$(SOURCE_DATE_EPOCH)") \
$(wordlist 2,$(words $(1)),$(1)) \
$@
[email protected]
/$(if $(word 1,$(1)),$(word 1,$(1)),$$(basename $@))