diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-05-29 13:41:41 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-05-29 13:41:41 +0000 |
commit | 94ad812527ea06d40a410ddda663629cb42b5464 (patch) | |
tree | c52d26c51b3f3f29b3fe2110e587ed91f796071b /target | |
parent | e2ad5c96d5de229fb5d8a0b560b8b753577b767b (diff) | |
download | upstream-94ad812527ea06d40a410ddda663629cb42b5464.tar.gz upstream-94ad812527ea06d40a410ddda663629cb42b5464.tar.bz2 upstream-94ad812527ea06d40a410ddda663629cb42b5464.zip |
ar71xx: use Image/BuildKernel/Initramfs template to fix image builder errors
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45838 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ar71xx/image/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
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)) |