aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-01-31 18:36:54 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-01-31 18:36:54 +0000
commitf25655b13bbd257b62e89a76178e2f4c429bb1a8 (patch)
tree24ca02b33faf6d785173a358d09e2e88eac898e4 /target/linux
parentf9e8748d5752e7332357e7eddf1074bac03d55c5 (diff)
downloadupstream-f25655b13bbd257b62e89a76178e2f4c429bb1a8.tar.gz
upstream-f25655b13bbd257b62e89a76178e2f4c429bb1a8.tar.bz2
upstream-f25655b13bbd257b62e89a76178e2f4c429bb1a8.zip
ar71xx: compress kernel binaries in Image/Prepare stage
The lzma compressed kernel is used by one of the loaders. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29971 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/image/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
index 43e74b243e..c3dc8a058d 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -122,8 +122,6 @@ endef
define Image/BuildKernel
cp $(KDIR)/vmlinux.elf $(VMLINUX).elf
cp $(KDIR)/vmlinux $(VMLINUX).bin
- gzip -9 -c $(KDIR)/vmlinux > $(KDIR)/vmlinux.bin.gz
- $(call CompressLzma,$(KDIR)/vmlinux,$(KDIR)/vmlinux.bin.lzma)
dd if=$(KDIR)/vmlinux.bin.lzma of=$(VMLINUX).lzma bs=65536 conv=sync
dd if=$(KDIR)/vmlinux.bin.gz of=$(VMLINUX).gz bs=65536 conv=sync
$(call MkuImage,gzip,,$(KDIR)/vmlinux.bin.gz,$(UIMAGE)-gzip.bin)
@@ -1064,6 +1062,8 @@ define Image/Build/Initramfs
endef
define Image/Prepare
+ gzip -9 -c $(KDIR)/vmlinux > $(KDIR)/vmlinux.bin.gz
+ $(call CompressLzma,$(KDIR)/vmlinux,$(KDIR)/vmlinux.bin.lzma)
$(call Image/Build/Profile/Default,loader)
endef