]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
tools/nolibc: explicitly list architecture headers
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 1 Apr 2026 15:08:31 +0000 (17:08 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Thu, 2 Apr 2026 15:11:53 +0000 (17:11 +0200)
Relying on $(wildcard) is brittle and non-deterministic.

similar to all the other headers.
Switch the list of architecture headers to an explicit list,

Link: https://patch.msgid.link/20260401-nolibc-cleanup-v1-4-bcf4c9f5c1be@weissschuh.net
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/include/nolibc/Makefile

index 03f789b21017342797a94a513a6aa692ab97342f..db6db4e6d99e6c10eab989ef5a96d09f7b1f6d8e 100644 (file)
@@ -17,7 +17,8 @@ endif
 # it defaults to this nolibc directory.
 OUTPUT ?= $(CURDIR)/
 
-arch_files := arch.h $(wildcard arch-*.h)
+architectures := arm arm64 loongarch m68k mips powerpc riscv s390 sh sparc x86
+arch_files := arch.h $(addsuffix .h, $(addprefix arch-, $(architectures)))
 all_files := \
                compiler.h \
                crt.h \