From: Vagrant Cascadian Date: Thu, 10 May 2018 20:24:57 +0000 (+0100) Subject: set-time-and-umask-on-spl-fit-files X-Git-Tag: archive/raspbian/2020.07+dfsg-2+rpi1^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=60d8731754275731dd0ac2df9f2df2e7e3102160;p=u-boot.git set-time-and-umask-on-spl-fit-files When building compressed (lzop, gzip) multi-dtb fit images, the compression tool may embed the time or umask in the image. Work around this by manually setting the time of the source file using SOURCE_DATE_EPOCH and a hard-coded 0600 umask. With gzip, this could be accomplished by using -n/--no-name, but lzop has no current workaround: https://bugs.debian.org/896520 Gbp-Pq: Topic reproducible Gbp-Pq: Name set-time-and-umask-on-spl-fit-files --- diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl index 09e7cef96..7d6706eaf 100644 --- a/scripts/Makefile.spl +++ b/scripts/Makefile.spl @@ -387,6 +387,8 @@ MKIMAGEFLAGS_$(SPL_BIN).multidtb.fit = -f auto -A $(ARCH) -T firmware -C none -O $(obj)/$(SPL_BIN).multidtb.fit: /dev/null $(SHRUNK_ARCH_DTB) FORCE $(call if_changed,mkimage) + touch -d @$(SOURCE_DATE_EPOCH) $(obj)/$(SPL_BIN).multidtb.fit + chmod 0600 $(obj)/$(SPL_BIN).multidtb.fit $(obj)/$(SPL_BIN).multidtb.fit.gz: $(obj)/$(SPL_BIN).multidtb.fit @gzip -kf9 $< > $@