build: allow KERNELNAME to contain multiple kernel make targets
authorFlorian Fainelli <florian@openwrt.org>
Mon, 18 Jun 2012 13:20:50 +0000 (13:20 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Mon, 18 Jun 2012 13:20:50 +0000 (13:20 +0000)
SVN-Revision: 32423

include/kernel-defaults.mk

index c18d638337de25971009f8bd9bb54c09ba590113..b63092ac6bc0a97999adde1fe32d2aa146853b00 100644 (file)
@@ -119,7 +119,7 @@ OBJCOPY_STRIP = -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.g
 
 define Kernel/CompileImage/Default
        $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),,rm -f $(TARGET_DIR)/init)
-       +$(MAKE) $(KERNEL_MAKEOPTS) $(KERNELNAME)
+       +$(MAKE) $(KERNEL_MAKEOPTS) $(subst ",,$(KERNELNAME))
        $(KERNEL_CROSS)objcopy -O binary $(OBJCOPY_STRIP) -S $(LINUX_DIR)/vmlinux $(LINUX_KERNEL)
        $(KERNEL_CROSS)objcopy $(OBJCOPY_STRIP) -S $(LINUX_DIR)/vmlinux $(KERNEL_BUILD_DIR)/vmlinux.elf
 endef