Skip to content

Commit 850047b

Browse files
committed
selftests/nolibc: always compile the kernel with GCC
LLVM/clang can not build the kernel for all architectures supported by nolibc. The current setup uses the same compiler to build the kernel as is used for nolibc-test. This prevents using the full qemu-system tests for LLVM builds. Instead always build the kernel with GCC. For the nolibc testsuite the kernel does not need to be built with LLVM. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Acked-by: Willy Tarreau <w@1wt.eu> Link: https://lore.kernel.org/r/20250719-nolibc-llvm-system-v1-3-1730216ce171@weissschuh.net
1 parent 1a5b403 commit 850047b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/testing/selftests/nolibc/Makefile.nolibc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ REPORT ?= awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{if (!f) printf("\n"); f++
263263
printf("\nSee all results in %s\n", ARGV[1]); }'
264264

265265
# Execute the toplevel kernel Makefile
266-
KBUILD_MAKE = $(MAKE) -C $(srctree) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE)
266+
KBUILD_MAKE = $(MAKE) -C $(srctree) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) LLVM=
267267

268268
help:
269269
@echo "Supported targets under selftests/nolibc:"
@@ -276,8 +276,8 @@ help:
276276
@echo " initramfs.cpio prepare the initramfs archive with nolibc-test"
277277
@echo " initramfs prepare the initramfs tree with nolibc-test"
278278
@echo " defconfig create a fresh new default config (uses \$$XARCH)"
279-
@echo " kernel (re)build the kernel (uses \$$XARCH)"
280-
@echo " kernel-standalone (re)build the kernel with the initramfs (uses \$$XARCH)"
279+
@echo " kernel (re)build the kernel (uses \$$XARCH, \$$CROSS_COMPILE)"
280+
@echo " kernel-standalone (re)build the kernel with the initramfs (uses \$$XARCH, \$$CROSS_COMPILE)"
281281
@echo " run runs the kernel in QEMU after building it (uses \$$XARCH, \$$TEST)"
282282
@echo " rerun runs a previously prebuilt kernel in QEMU (uses \$$XARCH, \$$TEST)"
283283
@echo " clean clean the sysroot, initramfs, build and output files"

0 commit comments

Comments
 (0)