From: Kees Cook <kees@kernel.org>
To: Nathan Chancellor <nathan@kernel.org>
Cc: "Kees Cook" <kees@kernel.org>, "Nicolas Schier" <nsc@kernel.org>,
"Lorenzo Stoakes (ARM)" <ljs@kernel.org>,
"Julian Braha" <julianbraha@gmail.com>,
"Jonathan Corbet" <corbet@lwn.net>,
"Shuah Khan" <skhan@linuxfoundation.org>,
"Randy Dunlap" <rdunlap@infradead.org>,
"Vegard Nossum" <vegard.nossum@oracle.com>,
"Nauman Sabir" <officialnaumansabir@gmail.com>,
"Tejun Heo" <tj@kernel.org>, "Nicolas Pitre" <nico@fluxnic.net>,
"Thomas Weißschuh" <thomas.weissschuh@linutronix.de>,
"Matthew Maurer" <mmaurer@google.com>,
"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
"Andrew Jones" <andrew.jones@linux.dev>,
"Graham Roff" <grahamr@qti.qualcomm.com>,
"Masahiro Yamada" <masahiroy@kernel.org>,
"Arnd Bergmann" <arnd@arndb.de>,
"Krzysztof Kozlowski" <krzk@kernel.org>,
"Miguel Ojeda" <ojeda@kernel.org>,
"Borislav Petkov (AMD)" <bp@alien8.de>,
"Gary Guo" <gary@garyguo.net>,
linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org,
linux-doc@vger.kernel.org, linux-hardening@vger.kernel.org
Subject: [PATCH 0/3] kconfig: Introduce cc-option-str
Date: Fri, 18 Sep 2026 17:59:24 -0700 [thread overview]
Message-ID: <20260919005923.i.879-kees@kernel.org> (raw)
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
next reply other threads:[~2026-09-19 0:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-19 0:59 Kees Cook [this message]
2026-09-19 0:59 ` [PATCH 1/3] kconfig: Add "def_string", "def_int" and "def_hex" Kees Cook
2026-09-19 15:34 ` Julian Braha
2026-09-20 3:40 ` Kees Cook
2026-09-21 10:25 ` Julian Braha
2026-09-19 0:59 ` [PATCH 2/3] kconfig: Replace "cc-option-bit" with "cc-option-str" Kees Cook
2026-09-21 12:09 ` Julian Braha
2026-09-19 0:59 ` [PATCH 3/3] kconfig: Add "ld-option-str" Kees Cook
2026-09-21 12:27 ` Julian Braha
2026-09-19 1:25 ` [PATCH 0/3] kconfig: Introduce cc-option-str Nathan Chancellor
2026-09-19 13:31 ` Lorenzo Stoakes (ARM)
2026-09-24 15:41 ` Nathan Chancellor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260919005923.i.879-kees@kernel.org \
--to=kees@kernel.org \
--cc=andrew.jones@linux.dev \
--cc=andriy.shevchenko@linux.intel.com \
--cc=arnd@arndb.de \
--cc=bp@alien8.de \
--cc=corbet@lwn.net \
--cc=gary@garyguo.net \
--cc=grahamr@qti.qualcomm.com \
--cc=julianbraha@gmail.com \
--cc=krzk@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ljs@kernel.org \
--cc=masahiroy@kernel.org \
--cc=mmaurer@google.com \
--cc=nathan@kernel.org \
--cc=nico@fluxnic.net \
--cc=nsc@kernel.org \
--cc=officialnaumansabir@gmail.com \
--cc=ojeda@kernel.org \
--cc=rdunlap@infradead.org \
--cc=skhan@linuxfoundation.org \
--cc=thomas.weissschuh@linutronix.de \
--cc=tj@kernel.org \
--cc=vegard.nossum@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.