Author: blogic
Date: 2014-07-21 20:42:11 +0200 (Mon, 21 Jul 2014)
New Revision: 41792

Modified:
   trunk/include/kernel-defaults.mk
   trunk/target/linux/malta/image/Makefile
   trunk/target/linux/xburst/image/Makefile
Log:
target/linux/*/image/Makefile: eliminate more LINUX_DIR users

Signed-off-by: John Crispin <[email protected]>

Modified: trunk/include/kernel-defaults.mk
===================================================================
--- trunk/include/kernel-defaults.mk    2014-07-21 18:42:06 UTC (rev 41791)
+++ trunk/include/kernel-defaults.mk    2014-07-21 18:42:11 UTC (rev 41792)
@@ -140,6 +140,7 @@
 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);)

Modified: trunk/target/linux/malta/image/Makefile
===================================================================
--- trunk/target/linux/malta/image/Makefile     2014-07-21 18:42:06 UTC (rev 
41791)
+++ trunk/target/linux/malta/image/Makefile     2014-07-21 18:42:11 UTC (rev 
41792)
@@ -21,7 +21,7 @@
 
 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
 

Modified: trunk/target/linux/xburst/image/Makefile
===================================================================
--- trunk/target/linux/xburst/image/Makefile    2014-07-21 18:42:06 UTC (rev 
41791)
+++ trunk/target/linux/xburst/image/Makefile    2014-07-21 18:42:11 UTC (rev 
41792)
@@ -27,7 +27,7 @@
 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
 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to