[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251110211549.GB302594@ax162>
Date: Mon, 10 Nov 2025 14:15:49 -0700
From: Nathan Chancellor <nathan@...nel.org>
To: Jani Nikula <jani.nikula@...ux.intel.com>
Cc: Graham Roff <grahamr@....qualcomm.com>, Nicolas Schier <nsc@...nel.org>,
Jonathan Corbet <corbet@....net>, linux-kbuild@...r.kernel.org,
linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org,
Nicolas Pitre <nico@...xnic.net>
Subject: Re: [PATCH] Support conditional deps using "depends on X if Y"
On Mon, Nov 10, 2025 at 10:48:59AM +0200, Jani Nikula wrote:
> "depends on A || !A" (or A=n) is the most common pattern in Kconfig,
> which literally means "depends on A if A".
That is totally fair, I did not try to actually search for the idiom. I
will say I do not find that either expression in Kconfig easily
translates in my head to "this dependency must be built in if the symbol
is built in, modular if the symbol is modular, or disabled" but I guess
that is just lack of familiarity with these idioms. I just want it to be
obvious to folks writing Kconfig when something like this is appropriate
to use but I guess with that being the most common usage in the tree, it
is fine as is.
I think my point about tests still stands, at least something very
basic.
Cheers,
Nathan
Powered by blists - more mailing lists