Re: [PATCH] kconfig: keep builtin precedence with duplicate fragment entries
From: Nicolas Schier
Date: Tue Sep 29 2026 - 08:17:17 EST
On Mon, Sep 28, 2026 at 07:45:22PM -0400, omer zalman wrote:
> The -y option is meant to preserve a builtin value when a fragment
> requests a module. With duplicate CONFIG_FOO=m lines, only the last
> fragment line is skipped; an earlier one remains after CONFIG_FOO=y.
> Kconfig reads the later assignment and can demote the symbol. Track
> the symbol instead of one line, and skip all of its assignments
> when builtin precedence applies.
>
> Signed-off-by: Omer Zalman <omerzalman42@xxxxxxxxx>
>
> The exact git-format-patch file is attached because Gmail's web
> composer removes tabs from inline diffs.
I did not have time for review, yet; just a heads-up: Sending patches
via attachments is incompatible to standard tooling (b4, etc.) and thus
requires more manual work. One way to work-around gmails restrictions
might be the use of b4's web-submission endpoint:
https://b4.docs.kernel.org/en/latest/contributor/send.html#authenticating-with-the-web-submission-endpoint
--
Nicolas