diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk index f1f5a81313d8222cb423947ed27cb4bdc2b8e3ce..da06abd0a54e0bd7f8068d53cf7eb8294d09e4a9 100644 --- a/include/kernel-defaults.mk +++ b/include/kernel-defaults.mk @@ -140,6 +140,7 @@ 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 + $(CP) $(LINUX_DIR)/vmlinux $(KERNEL_BUILD_DIR)/vmlinux.debug ifneq ($(subst ",,$(KERNELNAME)),) #") $(foreach k,$(filter-out dtbs,$(subst ",,$(KERNELNAME))),$(CP) $(LINUX_DIR)/arch/$(LINUX_KARCH)/boot/$(IMAGES_DIR)/$(k) $(KERNEL_BUILD_DIR)/$(k)$(1);) diff --git a/target/linux/malta/image/Makefile b/target/linux/malta/image/Makefile index c0e520fbeee1e200ba1a258e078a2abac999ff5b..db2637ad8fcb8c0014bb70b9b119b53a4fa1a2de 100644 --- a/target/linux/malta/image/Makefile +++ b/target/linux/malta/image/Makefile @@ -21,7 +21,7 @@ endef define MkuImage mkimage -A mips -O linux -T kernel -a 0x80100000 -C $(1) $(2) \ - -e $(call get_kernel_entry,$(LINUX_DIR)/vmlinux) -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \ + -e $(call get_kernel_entry,$(KDIR)/vmlinux.debug) -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \ -d $(3) $(4) endef diff --git a/target/linux/xburst/image/Makefile b/target/linux/xburst/image/Makefile index 0de5560c961e0ee3f96486b6f2ab468d3d8943ec..49bb254164ced11d4e31476bec0023d3096984dd 100644 --- a/target/linux/xburst/image/Makefile +++ b/target/linux/xburst/image/Makefile @@ -27,7 +27,7 @@ endef define MkImageGzip gzip -9 -c $(1) > $(1).gz mkimage -A mips -O linux -T kernel -a 0x80010000 -C gzip \ - -e $(call kernel_entry,$(LINUX_DIR)/vmlinux) -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \ + -e $(call kernel_entry,$(KDIR)/vmlinux.debug) -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \ -d $(1).gz $(2) endef