Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests/nolibc: drop NOLIBC_SYSROOT=0 logic

This logic was added in commit 850fad7de827 ("selftests/nolibc: allow
test -include /path/to/nolibc.h") to allow the testing of -include
/path/to/nolibc.h. As it requires as special variable to activate, this
code is nearly never used. Furthermore it complicates the logic a bit.

Since commit a6a054c8ad32 ("tools/nolibc: add target to check header
usability") and commit 443c6467fcd6 ("selftests/nolibc: always run
nolibc header check") the usability of -include /path/to/nolibc.h is
always checked anyways, making NOLIBC_SYSROOT=0 pointless.

Drop the special logic.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260104-nolibc-nolibc_sysroot-v1-1-98025ad99add@weissschuh.net

-6
-6
tools/testing/selftests/nolibc/Makefile.nolibc
··· 302 302 $(Q)$(MAKE) -C $(srctree)/tools/include/nolibc ARCH=$(ARCH) OUTPUT=$(CURDIR)/sysroot/ headers_standalone headers_check 303 303 $(Q)mv sysroot/sysroot sysroot/$(ARCH) 304 304 305 - ifneq ($(NOLIBC_SYSROOT),0) 306 305 nolibc-test: nolibc-test.c nolibc-test-linkage.c sysroot/$(ARCH)/include 307 306 $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ \ 308 307 -nostdlib -nostdinc -static -Isysroot/$(ARCH)/include nolibc-test.c nolibc-test-linkage.c $(LIBGCC) 309 - else 310 - nolibc-test: nolibc-test.c nolibc-test-linkage.c 311 - $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ \ 312 - -nostdlib -static -include $(srctree)/tools/include/nolibc/nolibc.h nolibc-test.c nolibc-test-linkage.c $(LIBGCC) 313 - endif 314 308 315 309 libc-test: nolibc-test.c nolibc-test-linkage.c 316 310 $(QUIET_CC)$(HOSTCC) -o $@ nolibc-test.c nolibc-test-linkage.c