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 <stijn@linux-ipv6.be>
Tested-by: Martin Schleier <drahemmaps@gmx.net>
This commit is contained in:
Stijn Tintel 2018-02-19 23:03:00 +01:00
parent 858ff4f3e1
commit 138c76332b

View File

@ -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