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.

tools/build: Reject unexpected values for LLVM=

Since commit 502678b88cb3 ("kbuild: Reject unexpected values for LLVM=")
the regular kbuild rejects unexpected values of LLVM=1 instead of
silently treating them as LLVM=1.

Align the tools build to kbuild.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Link: https://patch.msgid.link/20260226-kbuild-llvm-followup-v1-2-201cc2a492d9@weissschuh.net
Signed-off-by: Nicolas Schier <nsc@kernel.org>

authored by

Thomas Weißschuh and committed by
Nicolas Schier
7239ae53 8830b2e5

+2
+2
tools/scripts/Makefile.include
··· 56 56 LLVM_PREFIX := $(LLVM) 57 57 else ifneq ($(filter -%,$(LLVM)),) 58 58 LLVM_SUFFIX := $(LLVM) 59 + else ifneq ($(LLVM),1) 60 + $(error Invalid value for LLVM, see Documentation/kbuild/llvm.rst) 59 61 endif 60 62 61 63 $(call allow-override,CC,$(LLVM_PREFIX)clang$(LLVM_SUFFIX))