Skip to contentSkip to conversation

fit-dtb.blob.gz: Pass "-n" to gzip

PATCH In review Tom Rini 1 participant 2 messages Jun 27, 2025 – Jul 9, 2025 Kbuild

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 fit-dtb.blob.gz: Pass "-n" to gzip

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.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index e60bbb01a004..5a238ab9b5da 100644
@@ -1216,7 +1216,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 $< > $@
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 9 lines · Tom Rini

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

[...]

Applied to u-boot/master, thanks!

[1/1] fit-dtb.blob.gz: Pass "-n" to gzip

      commit: 1930a7df10b18f0f4b67d868632896233dded981
Signature · 1 line
Tom