Message ID | cbadfa58968020bdb0fab63e6db4e223a6dff336.1687706332.git.falcon@tinylab.org |
---|---|
State | New |
Headers | show |
Series | selftests/nolibc: add minimal kernel config support | expand |
diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 10579396e60e..5caf3e7023d7 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -177,6 +177,9 @@ initramfs: nolibc-test defconfig: $(Q)$(MAKE) -C $(srctree) ARCH=$(KARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) mrproper $(DEFCONFIG) prepare +tinyconfig: + $(Q)$(MAKE) -C $(srctree) ARCH=$(KARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) mrproper tinyconfig prepare + menuconfig: $(Q)$(MAKE) -C $(srctree) ARCH=$(KARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) menuconfig
The default DEFCONFIG_<ARCH> enables too many options, the kernel building with such options is very slow. To speed up the 'run' target, in parallel with the 'defconfig' target, another 'tinyconfig' target is added to allow only enable necessary options to just let nolibc-test pass. Note, this 'tinyconfig' target is not enough to let qemu really boot and print, the coming patches will add more options to let nolibc-test be able to run, print the results and let all tests pass. Suggested-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/lkml/bc635c4f-67fe-4e86-bfdf-bcb4879b928d@t-8ch.de/ Signed-off-by: Zhangjin Wu <falcon@tinylab.org> --- tools/testing/selftests/nolibc/Makefile | 3 +++ 1 file changed, 3 insertions(+)