[PATCH 4/4] tools/nolibc: explicitly list architecture headers

Thomas Weißschuh posted 4 patches 5 hours ago
[PATCH 4/4] tools/nolibc: explicitly list architecture headers
Posted by Thomas Weißschuh 5 hours ago
Relying on $(wildcard) is brittle and non-deterministic.

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

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
 tools/include/nolibc/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/include/nolibc/Makefile b/tools/include/nolibc/Makefile
index 56343fdbdb2f..cb483128e62a 100644
--- a/tools/include/nolibc/Makefile
+++ b/tools/include/nolibc/Makefile
@@ -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 \

-- 
2.53.0