From: Felix Fietkau Date: Fri, 29 May 2015 13:41:41 +0000 (+0000) Subject: ar71xx: use Image/BuildKernel/Initramfs template to fix image builder errors X-Git-Tag: reboot~2912 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1520df3387affc9a802ad8c76b83fc66468fb4f5;p=openwrt%2Fstaging%2Fjogo.git ar71xx: use Image/BuildKernel/Initramfs template to fix image builder errors Signed-off-by: Felix Fietkau SVN-Revision: 45838 --- diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index ee8af8a6c1..f32bc59359 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -933,7 +933,9 @@ define Image/BuildKernel cp $(KDIR)/loader-generic.elf $(VMLINUX)-lzma.elf -mkdir -p $(KDIR_TMP) $(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 $(VMLINUX)-initramfs.bin 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) cp $(KDIR)/loader-generic-initramfs.elf $(VMLINUX)-initramfs-lzma.elf $(call Image/Build/Initramfs) -endif endef Image/Build/WRT400N/buildkernel=$(call MkuImageLzma,$(2),$(3))