[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <82317993284703834a7b1d8d5ca05b7c646f2795@intel.com>
Date: Mon, 10 Nov 2025 10:48:59 +0200
From: Jani Nikula <jani.nikula@...ux.intel.com>
To: Nathan Chancellor <nathan@...nel.org>, Graham Roff
<grahamr@....qualcomm.com>
Cc: 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 Sun, 09 Nov 2025, Nathan Chancellor <nathan@...nel.org> wrote:
> I think it would be useful to have a slightly more concrete example in
> the documentation of where this could be useful because even with the
> "if" syntax, it still feels a little confusing to me at least with the
> current example. Since this is just internally converting "depends on A
> if B" to "depends on A || !B", this seems like a low risk addition to
> the Kconfig language but it would be good to have some tests under
> scripts/kconfig/tests like the ones recently added by commit
> f9afce4f32e9 ("kconfig: Add transitional symbol attribute for migration
> support") upstream.
"depends on A || !A" (or A=n) is the most common pattern in Kconfig,
which literally means "depends on A if A".
BR,
Jani.
--
Jani Nikula, Intel
Powered by blists - more mailing lists