From: Stijn Tintel Date: Mon, 19 Feb 2018 22:03:00 +0000 (+0100) Subject: build: add --force option to gzip in Build/gzip X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=138c76332b7e39b3c4e3018e7792e74645ab0c7a;p=openwrt%2Fstaging%2Fthess.git build: add --force option to gzip in Build/gzip When using pigz, a parallel gzip implementation, the gzip step in the image build for some targets fails, because the image filename already has the .gz extension. This results in an emtpy image file. Fix this by adding the --force option to gzip in the Build/gzip macro. Signed-off-by: Stijn Tintel Tested-by: Martin Schleier --- diff --git a/include/image-commands.mk b/include/image-commands.mk index 555a9e5906..9ec3a84884 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -133,7 +133,7 @@ define Build/lzma-no-dict endef define Build/gzip - gzip -9n -c $@ $(1) > $@.new + gzip --force -9n -c $@ $(1) > $@.new @mv $@.new $@ endef