image: respect TARGET_PER_DEVICE_ROOTFS for initramfs fit command
authorChristian Marangi <ansuelsmth@gmail.com>
Fri, 5 Jul 2024 16:17:44 +0000 (18:17 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Sat, 6 Jul 2024 14:20:07 +0000 (16:20 +0200)
commitec75f86612f9b017d468e5bad9693606236d1ebc
tree6d773644b788c32987686546ad5f3e487dbf1af9
parent97fd059e7e6a75766da4b8c9649b105b17e3acb3
image: respect TARGET_PER_DEVICE_ROOTFS for initramfs fit command

Fit command makes use of CONFIG_TARGET_ROOTFS_INITRAMFS_SEPARATE as the
cpio is provided externally and is not embedded in the kernel image.

As done with embedded cpio, also handle PER_DEVICE_ROOTFS by generating
a cpio for each rootfs and reference them by the ROOTFS_ID generated
previously. The generated cpio are placed in the linux directory + the
package ID.

Link: https://github.com/openwrt/openwrt/pull/12959
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
include/image-commands.mk
include/kernel-defaults.mk