summaryrefslogtreecommitdiff
path: root/target
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
commit8766f32b8c10ec8f5a34c794397e90d8f9d5796a (patch)
treeddab01549a73523fcdcb2e4ed46946bb71ff3e99 /target
parentd5d37febb4d917882569ec00a5a4c65492e6807d (diff)
downloadmtk-20170518-8766f32b8c10ec8f5a34c794397e90d8f9d5796a.zip
mtk-20170518-8766f32b8c10ec8f5a34c794397e90d8f9d5796a.tar.gz
mtk-20170518-8766f32b8c10ec8f5a34c794397e90d8f9d5796a.tar.bz2
ar71xx: compress kernel binaries in Image/Prepare stage
The lzma compressed kernel is used by one of the loaders. SVN-Revision: 29971
Diffstat (limited to 'target')
-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 43e74b2..c3dc8a0 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