kernel: fix broken initramfs images for Separate cpio
authorChristian Marangi <ansuelsmth@gmail.com>
Tue, 9 Jul 2024 02:27:11 +0000 (04:27 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 9 Jul 2024 06:43:16 +0000 (08:43 +0200)
commit3c95641366f78e34bbf147da5840d7d3217ac4e1
tree784d7f9483d4137b4b6039626b20f60d312d7d65
parent3d7cb14211bb2b9f7ad34d001c40ac0bd1558767
kernel: fix broken initramfs images for Separate cpio

Commit 0137fbd74bff ("kernel: skip rebuilding kernel with
ROOTFS_INITRAMFS_SEPARATE") had a logic error error and didn't account
that the generic initramfs is still needed to be built to enable support
for the cpio compression and other config specific to initramfs. With
that commit we completely skip rebuilding the kernel with those new
options.

To better handle this, skip kernel build ONLY when we are handling Per
Device Rootfs, permitting the first generic build to be actually called
with the new options.

Fixes: 0137fbd74bff ("kernel: skip rebuilding kernel with ROOTFS_INITRAMFS_SEPARATE")
Link: https://github.com/openwrt/openwrt/pull/15912
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
include/kernel-defaults.mk