diff options
| author | Nathan Chancellor <nathan@kernel.org> | 2026-10-07 17:22:21 +0200 |
|---|---|---|
| committer | Nathan Chancellor <nathan@kernel.org> | 2026-10-09 22:26:56 +0200 |
| commit | c4c24fd63a8d56cfefd78678758f9be72e17c90a (patch) | |
| tree | 4cf5775131cdb2d394736c662711982455ba5316 /tools/lib/python/kdoc | |
| parent | a98db7418797bc27bef53c861b97ac748f598414 (diff) | |
| download | linux-next-c4c24fd63a8d56cfefd78678758f9be72e17c90a.tar.gz linux-next-c4c24fd63a8d56cfefd78678758f9be72e17c90a.zip | |
scripts/Kconfig.toolchain: Drop compiler symbols from dependencies
Commit 454e00cf8ee5 ("kbuild: avoid re-running compiler and linker
probes") moved many cc-option calls from the main Makefile into Kconfig.
In the process, code such as
ifdef CONFIG_CC_IS_GCC
KBUILD_CFLAGS += $(call cc-option,-foo)
endif
was converted into Kconfig as
config CC_OPT_FOO
def_string "$(cc-option-str,-foo)" if CC_IS_GCC
The 'if CC_IS_GCC' is generally unnecessary because it does not prevent
the cc-option-str call from running (which is the primary reason the
ifdef guards exists in the Makefile), as cc-option-str and the like are
run before Kconfig even parses the dependency. It only impacts the
symbol's visibility, which does not really matter in the general case,
so remove these dependencies.
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Reviewed-by: Kees Cook <kees@kernel.org>
Link: https://patch.msgid.link/20261007-scripts-kconfig-toolchain-improvements-v1-1-1e524178da11@kernel.org
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
