Skip to content

Commit

Permalink
kbuild: Call gzip with -n
Browse files Browse the repository at this point in the history
The timestamps recorded in the .gz files add no value.

Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
michal42 committed Apr 18, 2011
1 parent 1e2795a commit 6ae9ecb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/Makefile.lib
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions scripts/gen_initramfs_list.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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$" && \
Expand Down

0 comments on commit 6ae9ecb

Please sign in to comment.