image.mk: add support for specifying a different suffix for the initramfs kernel
authorFelix Fietkau <nbd@nbd.name>
Mon, 23 May 2016 12:35:57 +0000 (14:35 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 7 Jun 2016 06:58:40 +0000 (08:58 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
include/image.mk

index 57e6300e1533f0031c341fa650633cc7de47fdae..2164d1195d4f29b275c1f4b3c256c9fb3a6c0b89 100644 (file)
@@ -309,9 +309,10 @@ define Device/Init
   IMAGE_NAME = $$(IMAGE_PREFIX)-$$(1)-$$(2)
   KERNEL_PREFIX = $(1)
   KERNEL_SUFFIX := -kernel.bin
+  KERNEL_INITRAMFS_SUFFIX = $$(KERNEL_SUFFIX)
   KERNEL_IMAGE = $$(KERNEL_PREFIX)$$(KERNEL_SUFFIX)
   KERNEL_INITRAMFS_PREFIX = $$(IMAGE_PREFIX)-initramfs
-  KERNEL_INITRAMFS_IMAGE = $$(KERNEL_INITRAMFS_PREFIX)$$(KERNEL_SUFFIX)
+  KERNEL_INITRAMFS_IMAGE = $$(KERNEL_INITRAMFS_PREFIX)$$(KERNEL_INITRAMFS_SUFFIX)
   KERNEL_INITRAMFS_NAME = $$(KERNEL_NAME)-initramfs
   KERNEL_INSTALL :=
   KERNEL_NAME := vmlinux