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


Reply via email to