ar71xx/image: provide lzma compressed elf kernel image
This will be used on the RB4xx/RB7xx/RB2011 boards. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34272
This commit is contained in:
parent
97867f8717
commit
68b5aa2fdf
|
@ -192,6 +192,7 @@ define Image/BuildKernel
|
||||||
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)
|
||||||
$(call MkuImage,lzma,,$(KDIR)/vmlinux.bin.lzma,$(UIMAGE)-lzma.bin)
|
$(call MkuImage,lzma,,$(KDIR)/vmlinux.bin.lzma,$(UIMAGE)-lzma.bin)
|
||||||
|
cp $(KDIR)/loader-generic.elf $(VMLINUX)-lzma.elf
|
||||||
-mkdir -p $(KDIR_TMP)
|
-mkdir -p $(KDIR_TMP)
|
||||||
$(call Image/Build/Initramfs)
|
$(call Image/Build/Initramfs)
|
||||||
endef
|
endef
|
||||||
|
@ -945,6 +946,7 @@ endef
|
||||||
define Image/Prepare
|
define Image/Prepare
|
||||||
gzip -9 -c $(KDIR)/vmlinux > $(KDIR)/vmlinux.bin.gz
|
gzip -9 -c $(KDIR)/vmlinux > $(KDIR)/vmlinux.bin.gz
|
||||||
$(call CompressLzma,$(KDIR)/vmlinux,$(KDIR)/vmlinux.bin.lzma)
|
$(call CompressLzma,$(KDIR)/vmlinux,$(KDIR)/vmlinux.bin.lzma)
|
||||||
|
$(call Image/BuildLoader,generic,elf)
|
||||||
$(call Image/Build/Profile/$(if $(CONFIG_IB),Default,$(PROFILE)),loader)
|
$(call Image/Build/Profile/$(if $(CONFIG_IB),Default,$(PROFILE)),loader)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue