kernel: allow specifying kernel images to be copied separately from kernel make comma...
authorFelix Fietkau <nbd@openwrt.org>
Thu, 11 Dec 2014 15:29:33 +0000 (15:29 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 11 Dec 2014 15:29:33 +0000 (15:29 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43619

include/kernel-defaults.mk

index 8abd32d7141dfc1fb323f75a49a3baa84c4190f4..d6c892462359b551a0c2f623f2a731658d766a69 100644 (file)
@@ -141,9 +141,10 @@ 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 ($(KERNELNAME),)
-       $(foreach k,$(filter-out dtbs,$(KERNELNAME)),$(CP) $(LINUX_DIR)/arch/$(LINUX_KARCH)/boot/$(IMAGES_DIR)/$(k) $(KERNEL_BUILD_DIR)/$(k)$(1);)
-endif
+       $(foreach k, \
+               $(if $(KERNEL_IMAGES),$(KERNEL_IMAGES),$(filter-out dtbs,$(KERNELNAME))), \
+               $(CP) $(LINUX_DIR)/arch/$(LINUX_KARCH)/boot/$(IMAGES_DIR)/$(k) $(KERNEL_BUILD_DIR)/$(k)$(1); \
+       )
 endef
 
 define Kernel/CompileImage/Default