[OpenWrt-Devel] [PATCH 2/3] ARC: specify location of output elf

Alexey Brodkin Alexey.Brodkin at synopsys.com
Thu Aug 27 07:03:52 EDT 2015


For now on ARC we deal with vmlinux output file which is created in
the root of kernel build folder.

Once we move to uImage we'll be able to use default location in
arch/arc/boot.

Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>
---
 include/kernel-defaults.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk
index 24d2630..8f4cd91 100644
--- a/include/kernel-defaults.mk
+++ b/include/kernel-defaults.mk
@@ -131,6 +131,10 @@ ifeq ($(LINUX_KARCH),x86_64)
 IMAGES_DIR:=../../x86/boot
 endif
 
+ifeq ($(LINUX_KARCH),arc)
+IMAGES_DIR:=../../../
+endif
+
 define Kernel/CopyImage
 	$(KERNEL_CROSS)objcopy -O binary $(OBJCOPY_STRIP) -S $(LINUX_DIR)/vmlinux $(LINUX_KERNEL)$(1)
 	$(KERNEL_CROSS)objcopy $(OBJCOPY_STRIP) -S $(LINUX_DIR)/vmlinux $(KERNEL_BUILD_DIR)/vmlinux$(1).elf
-- 
2.4.3
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list