ar71xx: compress kernel binaries in Image/Prepare stage
The lzma compressed kernel is used by one of the loaders. SVN-Revision: 29971
This commit is contained in:
parent
d5d37febb4
commit
8766f32b8c
1 changed files with 2 additions and 2 deletions
|
@ -122,8 +122,6 @@ endef
|
||||||
define Image/BuildKernel
|
define Image/BuildKernel
|
||||||
cp $(KDIR)/vmlinux.elf $(VMLINUX).elf
|
cp $(KDIR)/vmlinux.elf $(VMLINUX).elf
|
||||||
cp $(KDIR)/vmlinux $(VMLINUX).bin
|
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.lzma of=$(VMLINUX).lzma bs=65536 conv=sync
|
||||||
dd if=$(KDIR)/vmlinux.bin.gz of=$(VMLINUX).gz 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)
|
$(call MkuImage,gzip,,$(KDIR)/vmlinux.bin.gz,$(UIMAGE)-gzip.bin)
|
||||||
|
@ -1064,6 +1062,8 @@ define Image/Build/Initramfs
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Prepare
|
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)
|
$(call Image/Build/Profile/Default,loader)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue