kbuild: Call gzip with -n
authorMichal Marek <mmarek@suse.cz>
Thu, 31 Mar 2011 13:47:55 +0000 (15:47 +0200)
committerMichal Marek <mmarek@suse.cz>
Mon, 18 Apr 2011 12:24:36 +0000 (14:24 +0200)
The timestamps recorded in the .gz files add no value.

Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/Makefile.lib
scripts/gen_initramfs_list.sh

index 1c702ca8aac81d853ac19c204d126c30dff639cb..93b2b5938a2e9e714590ca9728ec53a39763db06 100644 (file)
@@ -197,7 +197,7 @@ cmd_objcopy = $(OBJCOPY) $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@
 # ---------------------------------------------------------------------------
 
 quiet_cmd_gzip = GZIP    $@
-cmd_gzip = (cat $(filter-out FORCE,$^) | gzip -f -9 > $@) || \
+cmd_gzip = (cat $(filter-out FORCE,$^) | gzip -n -f -9 > $@) || \
        (rm -f $@ ; false)
 
 # DTC
index 55caecdad995b18940ce746650e45502f2fd11f0..4a43fe12d1792c8f150302d47755d34a82f1a497 100644 (file)
@@ -226,7 +226,7 @@ cpio_list=
 output="/dev/stdout"
 output_file=""
 is_cpio_compressed=
-compr="gzip -9 -f"
+compr="gzip -n -9 -f"
 
 arg="$1"
 case "$arg" in
@@ -240,7 +240,7 @@ case "$arg" in
                output_file="$1"
                cpio_list="$(mktemp ${TMPDIR:-/tmp}/cpiolist.XXXXXX)"
                output=${cpio_list}
-               echo "$output_file" | grep -q "\.gz$" && compr="gzip -9 -f"
+               echo "$output_file" | grep -q "\.gz$" && compr="gzip -n -9 -f"
                echo "$output_file" | grep -q "\.bz2$" && compr="bzip2 -9 -f"
                echo "$output_file" | grep -q "\.lzma$" && compr="lzma -9 -f"
                echo "$output_file" | grep -q "\.xz$" && \