mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +00:00
lantiq: fix initramfs image generation for lzmaloader based images
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37540
This commit is contained in:
parent
a4d31c0353
commit
313636c1e4
@ -18,11 +18,11 @@ LOADER_MAKE := $(NO_TRACE_MAKE) -C lzma-loader KDIR=$(KDIR)
|
|||||||
|
|
||||||
define Image/BuildLoader/Template
|
define Image/BuildLoader/Template
|
||||||
-rm -rf $(KDIR)/lzma-loader
|
-rm -rf $(KDIR)/lzma-loader
|
||||||
$(LOADER_MAKE) LOADER=loader-$(1).$(2)\
|
$(LOADER_MAKE) LOADER=loader$(2)-$(1).bin\
|
||||||
LZMA_TEXT_START=0x80a00000 \
|
LZMA_TEXT_START=0x80a00000 \
|
||||||
LOADADDR=0x80002000 \
|
LOADADDR=0x80002000 \
|
||||||
LOADER_DATA="$(KDIR)/vmlinux-$(1).lzma" BOARD="$(1)" \
|
LOADER_DATA="$(KDIR)/vmlinux$(2)-$(1).lzma" BOARD="$(1)" \
|
||||||
compile loader.$(2)
|
compile loader.bin
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
@ -120,9 +120,15 @@ endef
|
|||||||
|
|
||||||
define Image/BuildKernelLoader/Template
|
define Image/BuildKernelLoader/Template
|
||||||
$(call PatchKernelLzma,$(1))
|
$(call PatchKernelLzma,$(1))
|
||||||
$(call Image/BuildLoader/Template,$(1),bin)
|
$(call Image/BuildLoader/Template,$(1))
|
||||||
$(CP) $(KDIR)/loader-$(1).bin $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux-loader
|
$(CP) $(KDIR)/loader-$(1).bin $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux-loader
|
||||||
$(CP) $(KDIR)/vmlinux-$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux
|
$(CP) $(KDIR)/vmlinux-$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux
|
||||||
|
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
|
||||||
|
$(call PatchKernelLzma,$(1),-initramfs)
|
||||||
|
$(call Image/BuildLoader/Template,$(1),-initramfs)
|
||||||
|
$(CP) $(KDIR)/loader-initramfs-$(1).bin $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux-initramfs-loader
|
||||||
|
$(CP) $(KDIR)/vmlinux-initramfs-$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux-initramfs
|
||||||
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/BuildKernelEVA/Template
|
define Image/BuildKernelEVA/Template
|
||||||
|
Loading…
Reference in New Issue
Block a user