From ff565310cfc45e3f21c58a9f3d8af227aeaa21b0 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Thu, 4 Jan 2018 12:59:11 +0900 Subject: [PATCH] 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 --- plat/socionext/uniphier/platform.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plat/socionext/uniphier/platform.mk b/plat/socionext/uniphier/platform.mk index 41d04448..f99bbf58 100644 --- a/plat/socionext/uniphier/platform.mk +++ b/plat/socionext/uniphier/platform.mk @@ -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 > $@ -- 2.30.2