Browse Source

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

Allow other targets to make use of it.

Signed-off-by: Jonas Gorski <[email protected]>

SVN-Revision: 46601
Jonas Gorski 10 years ago
parent
commit
4e81a1473e
2 changed files with 5 additions and 5 deletions
  1. 5 0
      include/image.mk
  2. 0 5
      target/linux/brcm63xx/image/Makefile

+ 5 - 0
include/image.mk

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

+ 0 - 5
target/linux/brcm63xx/image/Makefile

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