uniphier: simplify GZIP compress rule

It is not necessary to read data from stdin.  The input file name
is ripped off by -n option, anyway.  I still use the redirect for
the output to specify the output file name.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
Masahiro Yamada 2018-01-04 12:59:11 +09:00
parent 34c2b9c2f1
commit ff565310cf
1 changed files with 1 additions and 1 deletions

View File

@ -117,4 +117,4 @@ endif
bl1_gzip: $(BUILD_PLAT)/bl1.bin.gzip
%.gzip: %
@echo " GZIP $@"
$(Q)(cat $< | gzip -n -f -9 > $@) || (rm -f $@ || false)
$(Q)gzip -n -f -9 $< --stdout > $@