1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-07 18:18:54 +03:00

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
This commit is contained in:
juhosg 2012-01-31 18:36:54 +00:00
parent 41e9c172ba
commit 796a085cac

View File

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