From: Thomas Weißschuh Date: Sun, 5 Nov 2023 10:07:05 +0000 (+0100) Subject: tools/nolibc: error out on unsupported architecture X-Git-Tag: v6.8-rc1~161^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=48946c5aa7a848c7dfc2151267af92956f492f58;p=thirdparty%2Fkernel%2Flinux.git tools/nolibc: error out on unsupported architecture When an architecture is unsupported arch.h would silently continue. This leads to a lot of followup errors because my_syscallX() is not defined and the startup code is missing. Avoid these confusing errors and fail the build early with a clear error message and location. Signed-off-by: Thomas Weißschuh Acked-by: Willy Tarreau --- diff --git a/tools/include/nolibc/arch.h b/tools/include/nolibc/arch.h index e276fb0680af5..2f72ccac03780 100644 --- a/tools/include/nolibc/arch.h +++ b/tools/include/nolibc/arch.h @@ -33,6 +33,8 @@ #include "arch-s390.h" #elif defined(__loongarch__) #include "arch-loongarch.h" +#else +#error Unsupported Architecture #endif #endif /* _NOLIBC_ARCH_H */