kernel: fix CopyImage function with Per Device Rootfs
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 7 Jul 2024 16:24:24 +0000 (18:24 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Sun, 7 Jul 2024 16:24:24 +0000 (18:24 +0200)
commit7bffb3f72bbfa06db5c61351f074533ac2d035a4
treedd3fa5b9c8840396cea74641039644e5006daa65
parent2ded54972e5acb6df8c323a173a4d8ff27f9f1a0
kernel: fix CopyImage function with Per Device Rootfs

Some target define custom kernel images with KERNEL_INITRAMFS_NAME to
reference .elf variant of vmlinux.

With Per Device Rootfs, the expected format is
image.suffix.extension.ROOTFS_ID, while in CopyImage we are currently
generating images with image.suffix.ROOTFS_ID.extension making some
target failing.

Fix CopyImage function to correctly follow the expected pattern.

Fixes: 97fd059e7e6a ("image: respect TARGET_PER_DEVICE_ROOTFS for initramfs")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
include/kernel-defaults.mk