]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
fit-dtb.blob.gz: Pass "-n" to gzip
authorTom Rini <trini@konsulko.com>
Fri, 27 Jun 2025 17:29:47 +0000 (11:29 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 9 Jul 2025 00:15:20 +0000 (18:15 -0600)
Sometimes when building a platform such as imx28_btt3 we can get an
error such as:

gzip: fit-dtb.blob: warning: file timestamp out of range for gzip format
make[1]: *** [Makefile:1219: fit-dtb.blob.gz] Error 2
make[1]: *** Deleting file 'fit-dtb.blob.gz'
make: *** [Makefile:186: sub-make] Error 2

This is typically resolved by telling gzip to ignore the timestamp.

Signed-off-by: Tom Rini <trini@konsulko.com>
Makefile

index b0e589c2eb0695f769950f074cd2621d2118b4e6..93e9f401842359a89b75ace7ae966b88a9072bcb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1408,7 +1408,7 @@ FINAL_DTB_CONTAINER = fit-dtb.blob
 endif
 
 fit-dtb.blob.gz: fit-dtb.blob
-       @gzip -kf9 $< > $@
+       @gzip -nkf9 $< > $@
 
 fit-dtb.blob.lzo: fit-dtb.blob
        @lzop -f9 $< > $@