selftests/nolibc: don't embed initramfs into kernel image
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 17 Sep 2023 15:21:38 +0000 (17:21 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Thu, 12 Oct 2023 19:14:07 +0000 (21:14 +0200)
commit45839d09910e94254e35b08d1a71cc1206767217
treefb013fdec70070c93996a2b3f2a6076bb7e553f2
parent4ed03f639e7abe9dd75c9775ee026be33ce1de82
selftests/nolibc: don't embed initramfs into kernel image

When the initramfs is embedded into the kernel each rebuild of it will
trigger a full kernel relink and all the expensive postprocessing steps.

Currently nolibc-test and therefore the initramfs are always rebuild,
even without source changes, leading to lots of slow kernel relinks.

Instead of linking the initramfs into the kernel assemble it manually
and pass it explicitly to qemu.
This avoids all of the kernel relinks.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Link: https://lore.kernel.org/r/20230917-nolibc-initramfs-v2-1-f0f293a8b198@weissschuh.net
tools/testing/selftests/nolibc/.gitignore
tools/testing/selftests/nolibc/Makefile