From 5b5a34737cfc37a4d80da7ad5e158b36ee7ce5b9 Mon Sep 17 00:00:00 2001 From: Sungbo Eo Date: Sat, 12 Feb 2022 17:01:31 +0900 Subject: [PATCH] build: image: use UTC for zip timestamp 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 (cherry picked from commit e42764cc5fa364e9fa553903c56191484738965e) --- 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 4686c89f61..e20c303b71 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -183,7 +183,7 @@ define Build/zip mkdir $@.tmp mv $@ $@.tmp/$(1) - zip -j -X \ + TZ=UTC zip -j -X \ $@ $@.tmp/$(if $(1),$(1),$@) rm -rf $@.tmp endef