[PATCH v1 05/22] selftests/nolibc: add tinyconfig target

From: Zhangjin Wu
Date: Sun Jun 25 2023 - 12:20:29 EST


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@xxxxxxxxxxxxxx>
Link: https://lore.kernel.org/lkml/bc635c4f-67fe-4e86-bfdf-bcb4879b928d@xxxxxxxx/
Signed-off-by: Zhangjin Wu <falcon@xxxxxxxxxxx>
---
tools/testing/selftests/nolibc/Makefile | 3 +++
1 file changed, 3 insertions(+)

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

--
2.25.1