Re: [PATCH 0/3] kconfig: Introduce cc-option-str

From: Nathan Chancellor

Date: Fri Sep 18 2026 - 21:25:24 EST


On Fri, Sep 18, 2026 at 05:59:24PM -0700, Kees Cook wrote:
> 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"

Thanks, exactly what I had in mind. This seems reasonable to me and
passes my basic testing. I will let folks chime in for a few days then
apply this to kbuild-next so that Lorenzo can use it as part of the
speed up series.

--
Cheers,
Nathan