aboutsummaryrefslogtreecommitdiffstats
path: root/include/image-commands.mk
diff options
context:
space:
mode:
authorSungbo Eo <mans0n@gorani.run>2022-02-12 17:01:31 +0900
committerSungbo Eo <mans0n@gorani.run>2022-03-09 15:38:23 +0900
commit39d06472eb93d72940b2728d33e2dafa2676e47b (patch)
treeec8e96487b6e9f2e7a830533c90b310ba6cf8f2e /include/image-commands.mk
parente42764cc5fa364e9fa553903c56191484738965e (diff)
downloadupstream-39d06472eb93d72940b2728d33e2dafa2676e47b.tar.gz
upstream-39d06472eb93d72940b2728d33e2dafa2676e47b.tar.bz2
upstream-39d06472eb93d72940b2728d33e2dafa2676e47b.zip
tools: zip: fetch SOURCE_DATE_EPOCH directly
Remove "--mtime" option introduced in commit 18c9faa03211 ("tools: zip: add option for reproducible archives") and instead fetch SOURCE_DATE_EPOCH environment variable directly in the code. Ref: https://sourceforge.net/p/infozip/patches/25/ Signed-off-by: Sungbo Eo <mans0n@gorani.run>
Diffstat (limited to 'include/image-commands.mk')
-rw-r--r--include/image-commands.mk1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/image-commands.mk b/include/image-commands.mk
index 21f851d205..b6593c138b 100644
--- a/include/image-commands.mk
+++ b/include/image-commands.mk
@@ -542,7 +542,6 @@ define Build/zip
mkdir $@.tmp
mv $@ $@.tmp/$(word 1,$(1))
TZ=UTC $(STAGING_DIR_HOST)/bin/zip -j -X \
- $(if $(SOURCE_DATE_EPOCH),--mtime="$(SOURCE_DATE_EPOCH)") \
$(wordlist 2,$(words $(1)),$(1)) \
$@ $@.tmp/$(if $(word 1,$(1)),$(word 1,$(1)),$$(basename $@))
rm -rf $@.tmp