summaryrefslogtreecommitdiff
path: root/src/Kconfig
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2024-04-03 15:56:27 +0200
committerMartin Roth <martin.roth@amd.corp-partner.google.com>2024-08-06 16:37:35 +0000
commit8d0d57f0a2ed454f0036caae6d6ac30c5eb77a52 (patch)
tree3432323f3e0f8419780765e8727c16b49591a49a /src/Kconfig
parent2f2c67da52722cce23e58ec1c7ddaf670ace715f (diff)
Kconfig: Reverse ARCH_SUPPORTS_CLANG
Since most targets support clang it's easier to reverse the semantics of the Kconfig options. Change-Id: Ib28e7a4cb286b9f8b05be94dae3947179f43c746 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81659 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com>
Diffstat (limited to 'src/Kconfig')
-rw-r--r--src/Kconfig10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Kconfig b/src/Kconfig
index ef3c72cc2d..b6dc67f00a 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -74,7 +74,7 @@ config COMPILER_GCC
config COMPILER_LLVM_CLANG
bool "LLVM/clang"
- depends on ALLOW_EXPERIMENTAL_CLANG || ARCH_SUPPORTS_CLANG
+ depends on ALLOW_EXPERIMENTAL_CLANG || !CLANG_UNSUPPORTED
help
Use LLVM/clang to build coreboot. To use this, you must build the
coreboot version of the clang compiler. Run the command
@@ -85,15 +85,15 @@ config COMPILER_LLVM_CLANG
endchoice
-config ARCH_SUPPORTS_CLANG
+config CLANG_UNSUPPORTED
bool
help
- Opt-in flag for architectures that generally work well with CLANG.
- By default the option would be hidden.
+ Set this flag on platforms that do not support building with the
+ clang compiler.
config ALLOW_EXPERIMENTAL_CLANG
bool "Allow experimental LLVM/Clang"
- depends on !ARCH_SUPPORTS_CLANG
+ depends on CLANG_UNSUPPORTED
help
On some architectures CLANG does not work that well.
Use this only to try to get CLANG working.