brcm63xx: move gzip build command to include/image.mk

Allow other targets to make use of it.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46601
This commit is contained in:
Jonas Gorski 2015-08-14 15:10:47 +00:00
parent 960113fcfc
commit 4e81a1473e
2 changed files with 5 additions and 5 deletions

View file

@ -323,6 +323,11 @@ define Build/lzma
@mv $@.new $@ @mv $@.new $@
endef endef
define Build/gzip
gzip -9n -c $@ $(1) > $@.new
@mv $@.new $@
endef
define Build/kernel-bin define Build/kernel-bin
rm -f $@ rm -f $@
cp $^ $@ cp $^ $@

View file

@ -38,11 +38,6 @@ define Build/append-dtb
cat $@.dtb >> $@ cat $@.dtb >> $@
endef endef
define Build/gzip
gzip -9 -c $@ > $@.gz
mv $@.gz $@
endef
define Build/hcs-initramfs define Build/hcs-initramfs
$(STAGING_DIR_HOST)/bin/hcsmakeimage --magic_bytes=$(HCS_MAGIC_BYTES) \ $(STAGING_DIR_HOST)/bin/hcsmakeimage --magic_bytes=$(HCS_MAGIC_BYTES) \
--rev_maj=$(HCS_REV_MAJ) --rev_min=$(HCS_REV_MIN) --input_file=$@ \ --rev_maj=$(HCS_REV_MAJ) --rev_min=$(HCS_REV_MIN) --input_file=$@ \