mirror of https://github.com/hak5/openwrt-owl.git
ar71xx: use Image/BuildKernel/Initramfs template to fix image builder errors
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45838owl
parent
bf93fde164
commit
1520df3387
|
@ -933,7 +933,9 @@ define Image/BuildKernel
|
||||||
cp $(KDIR)/loader-generic.elf $(VMLINUX)-lzma.elf
|
cp $(KDIR)/loader-generic.elf $(VMLINUX)-lzma.elf
|
||||||
-mkdir -p $(KDIR_TMP)
|
-mkdir -p $(KDIR_TMP)
|
||||||
$(call Image/Build/Profile/$(IMAGE_PROFILE),buildkernel)
|
$(call Image/Build/Profile/$(IMAGE_PROFILE),buildkernel)
|
||||||
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
|
endef
|
||||||
|
|
||||||
|
define Image/BuildKernel/Initramfs
|
||||||
cp $(KDIR)/vmlinux-initramfs.elf $(VMLINUX)-initramfs.elf
|
cp $(KDIR)/vmlinux-initramfs.elf $(VMLINUX)-initramfs.elf
|
||||||
cp $(KDIR)/vmlinux-initramfs $(VMLINUX)-initramfs.bin
|
cp $(KDIR)/vmlinux-initramfs $(VMLINUX)-initramfs.bin
|
||||||
dd if=$(KDIR)/vmlinux-initramfs.bin.lzma of=$(VMLINUX)-initramfs.lzma bs=65536 conv=sync
|
dd if=$(KDIR)/vmlinux-initramfs.bin.lzma of=$(VMLINUX)-initramfs.lzma bs=65536 conv=sync
|
||||||
|
@ -942,7 +944,6 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
|
||||||
$(call MkuImage,lzma,,$(KDIR)/vmlinux-initramfs.bin.lzma,$(UIMAGE)-initramfs-lzma.bin)
|
$(call MkuImage,lzma,,$(KDIR)/vmlinux-initramfs.bin.lzma,$(UIMAGE)-initramfs-lzma.bin)
|
||||||
cp $(KDIR)/loader-generic-initramfs.elf $(VMLINUX)-initramfs-lzma.elf
|
cp $(KDIR)/loader-generic-initramfs.elf $(VMLINUX)-initramfs-lzma.elf
|
||||||
$(call Image/Build/Initramfs)
|
$(call Image/Build/Initramfs)
|
||||||
endif
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
Image/Build/WRT400N/buildkernel=$(call MkuImageLzma,$(2),$(3))
|
Image/Build/WRT400N/buildkernel=$(call MkuImageLzma,$(2),$(3))
|
||||||
|
|
Loading…
Reference in New Issue