diff options
Diffstat (limited to 'target/linux/armvirt/image/Makefile')
-rw-r--r-- | target/linux/armvirt/image/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/target/linux/armvirt/image/Makefile b/target/linux/armvirt/image/Makefile index df4383f1d4..73d9145e0e 100644 --- a/target/linux/armvirt/image/Makefile +++ b/target/linux/armvirt/image/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2016 Yousong Zhou <yszhou4tech@gmail.com> +# Copyright (C) 2016-2017 Yousong Zhou <yszhou4tech@gmail.com> # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,11 +8,15 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/image.mk define Image/BuildKernel - cp $(KDIR)/$(KERNELNAME) $(BIN_DIR)/$(IMG_PREFIX)-$(KERNELNAME) + $(foreach k,$(filter zImage Image,$(KERNELNAME)), \ + cp $(KDIR)/$(KERNELNAME) $(BIN_DIR)/$(IMG_PREFIX)-$(k) \ + ) endef define Image/Build/Initramfs - cp $(KDIR)/$(KERNELNAME)-initramfs $(BIN_DIR)/$(IMG_PREFIX)-$(KERNELNAME)-initramfs + $(foreach k,$(filter zImage Image,$(KERNELNAME)), \ + cp $(KDIR)/$(k)-initramfs $(BIN_DIR)/$(IMG_PREFIX)-$(k)-initramfs \ + ) endef define Image/Build |