kernel: copy kernel build dir on Per-Device Initramfs compilation
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 16 Sep 2024 16:38:16 +0000 (18:38 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 17 Sep 2024 10:12:38 +0000 (12:12 +0200)
commitd78dec3e19e3f2ab0f14ba6819357d50156b30b8
tree2f49286a29b0d4c163f3ad6484a4a75f9b1e47c0
parent52cc9d82f1138e28dcf590fbe60c8a69635abcea
kernel: copy kernel build dir on Per-Device Initramfs compilation

To speedup compilation of Per-Device Initramfs, copy the kernel build
directory for each rootfs ID.

This permits concurrent execution of kernel build without conflicting
with each other at the expense of additional disk space usage.

To limit disk space usage, the copied kernel directory is deleted after
the Per-Device Initramfs image is generated and saved.

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