From: Julian Braha <julianbraha@gmail.com>
To: Gibson Bell <gibson@gibsonbell.com>, nathan@kernel.org, nsc@kernel.org
Cc: linux-kbuild@vger.kernel.org,
Mikko Rapeli <mikko.rapeli@linaro.org>,
Anders Roxell <anders.roxell@linaro.org>
Subject: Re: [PATCH] scripts: kconfig: merge_config.sh: treat =n and "is not set" as equal
Date: Mon, 30 Nov 2026 17:50:46 +0000 [thread overview]
Message-ID: <f3cc0ace-fd66-429e-a608-d7b8d4f4068a@gmail.com> (raw)
In-Reply-To: <20261130144507.76327-1-gibson@gibsonbell.com>
[-- Attachment #1.1: Type: text/plain, Size: 900 bytes --]
Hi Gibson,
Thanks for raising this!
On 11/30/26 14:45, Gibson Bell wrote:
> If the base config has CONFIG_FOO=n and a fragment has
> "# CONFIG_FOO is not set", both lines end up in the merged config and
> Kconfig complains about reassigning the symbol, which is fatal with
> KCONFIG_WERROR=1. Merging them the other way round trips strict mode
> instead.
'=n' isn't really the canon output for a disabled setting in Kconfig.
While it's accepted as input, Kconfig will always either omit the option
entirely, or write the comment for clarity: '# CONFIG_FOO is not set'.
>
> Both forms mean the same thing to Kconfig, so treat them as redundant
> whichever one comes first. Before the switch to awk, strict mode
Rather than using input order, it would be more consistent to prioritize
the '# CONFIG_FOO is not set' format when merging and writing output.
- Julian Braha
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
prev parent reply other threads:[~2026-11-30 17:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 14:45 [PATCH] scripts: kconfig: merge_config.sh: treat =n and "is not set" as equal Gibson Bell
2026-11-30 17:50 ` Julian Braha [this message]
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=f3cc0ace-fd66-429e-a608-d7b8d4f4068a@gmail.com \
--to=julianbraha@gmail.com \
--cc=anders.roxell@linaro.org \
--cc=gibson@gibsonbell.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=mikko.rapeli@linaro.org \
--cc=nathan@kernel.org \
--cc=nsc@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox