mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] kconfig: Introduce cc-option-str
@ 2026-09-19  0:59 Kees Cook
  2026-09-19  0:59 ` [PATCH 1/3] kconfig: Add "def_string", "def_int" and "def_hex" Kees Cook
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Kees Cook @ 2026-09-19  0:59 UTC (permalink / raw)
  To: Nathan Chancellor
  Cc: Kees Cook, Nicolas Schier, Lorenzo Stoakes (ARM),
	Julian Braha, Jonathan Corbet, Shuah Khan, Randy Dunlap,
	Vegard Nossum, Nauman Sabir, Tejun Heo, Nicolas Pitre,
	Thomas Weißschuh, Matthew Maurer, Andy Shevchenko,
	Andrew Jones, Graham Roff, Masahiro Yamada, Arnd Bergmann,
	Krzysztof Kozlowski, Miguel Ojeda, Borislav Petkov (AMD),
	Gary Guo, linux-kernel, linux-kbuild, linux-doc, linux-hardening

Hi,

While reviewing the recent build speedup series[1], it became clear
that we needed a general solution in kconfig to avoid repeating detected
toolchain options. Implement cc-option-str and ld-option-str, and while
at it, create "def_string" and friends to match "def_bool".

-Kees

[1] https://lore.kernel.org/all/20260918054058.GA384222@ax162/

Kees Cook (3):
  kconfig: Add "def_string", "def_int" and "def_hex"
  kconfig: Replace "cc-option-bit" with "cc-option-str"
  kconfig: Add "ld-option-str"

 scripts/kconfig/tests/def_type/Kconfig        | 28 ++++++++++++++++++
 scripts/kconfig/tests/def_type/guard_n.config |  1 +
 scripts/kconfig/tests/def_type/guard_y.config |  1 +
 scripts/kconfig/tests/def_type/__init__.py    | 18 ++++++++++++
 .../kconfig/tests/def_type/expected_guard_n   |  9 ++++++
 .../kconfig/tests/def_type/expected_guard_y   | 11 +++++++
 scripts/Kconfig.include                       | 29 +++++++++++++++----
 scripts/kconfig/kconfig-sym-check.pl          |  2 +-
 scripts/kconfig/lexer.l                       |  3 ++
 scripts/kconfig/parser.y                      |  6 ++++
 Documentation/kbuild/kconfig-language.rst     | 13 ++++++++-
 11 files changed, 114 insertions(+), 7 deletions(-)
 create mode 100644 scripts/kconfig/tests/def_type/Kconfig
 create mode 100644 scripts/kconfig/tests/def_type/guard_n.config
 create mode 100644 scripts/kconfig/tests/def_type/guard_y.config
 create mode 100644 scripts/kconfig/tests/def_type/__init__.py
 create mode 100644 scripts/kconfig/tests/def_type/expected_guard_n
 create mode 100644 scripts/kconfig/tests/def_type/expected_guard_y

-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-09-19  1:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-19  0:59 [PATCH 0/3] kconfig: Introduce cc-option-str Kees Cook
2026-09-19  0:59 ` [PATCH 1/3] kconfig: Add "def_string", "def_int" and "def_hex" Kees Cook
2026-09-19  0:59 ` [PATCH 2/3] kconfig: Replace "cc-option-bit" with "cc-option-str" Kees Cook
2026-09-19  0:59 ` [PATCH 3/3] kconfig: Add "ld-option-str" Kees Cook
2026-09-19  1:25 ` [PATCH 0/3] kconfig: Introduce cc-option-str Nathan Chancellor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®