kernel: do not try to copy vmlinux out of arch/$(ARCH)/boot
authorFelix Fietkau <nbd@nbd.name>
Fri, 17 Mar 2017 19:37:52 +0000 (20:37 +0100)
committerFelix Fietkau <nbd@nbd.name>
Wed, 22 Mar 2017 10:43:22 +0000 (11:43 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
include/kernel-defaults.mk

index 1c3b428b1661d2fa2e4feb9c0b1eb11992d9dd7d..9fa5c1d3dd9698e7285ff3149cd8e5675647a4b0 100644 (file)
@@ -152,7 +152,7 @@ define Kernel/CopyImage
                $(KERNEL_CROSS)objcopy $(OBJCOPY_STRIP) -S $(LINUX_DIR)/vmlinux $(KERNEL_BUILD_DIR)/vmlinux$(1).elf; \
                $(CP) $(LINUX_DIR)/vmlinux $(KERNEL_BUILD_DIR)/vmlinux$(1).debug; \
                $(foreach k, \
-                       $(if $(KERNEL_IMAGES),$(KERNEL_IMAGES),$(filter-out dtbs,$(KERNELNAME))), \
+                       $(if $(KERNEL_IMAGES),$(KERNEL_IMAGES),$(filter-out vmlinux dtbs,$(KERNELNAME))), \
                        $(CP) $(LINUX_DIR)/arch/$(LINUX_KARCH)/boot/$(IMAGES_DIR)/$(k) $(KERNEL_BUILD_DIR)/$(k)$(1); \
                ) \
        }