From: Julian Braha <julianbraha@gmail.com>
To: Graham Roff <grahamr@qti.qualcomm.com>,
Nathan Chancellor <nathan@kernel.org>,
Nicolas Schier <nsc@kernel.org>, Jonathan Corbet <corbet@lwn.net>
Cc: linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org, Nicolas Pitre <nico@fluxnic.net>,
Arnd Bergmann <arnd@arndb.de>,
jani.nikula@linux.intel.com,
Masahiro Yamada <masahiroy@kernel.org>
Subject: Re: [PATCH v3] kconfig: Support conditional deps using "depends on X if Y"
Date: Sat, 4 Jul 2026 14:23:48 +0100 [thread overview]
Message-ID: <955bf67f-309d-45d4-ac0d-2f53577aa18e@gmail.com> (raw)
In-Reply-To: <20251215-kconfig_conditional_deps-v3-1-59519af0a5df@qti.qualcomm.com>
Hi all,
On 12/15/25 23:06, Graham Roff wrote:
> Previously such optional dependencies had to be expressed as
> the counterintuitive "depends on X || !X", now this can be
> represented as "depends on X if X".
I have always found both of these:
'depends on X || !X'
and:
'depends on X if X'
to be unintuitive and confusing to read.
Yes, I understand from the docs that the purpose is to disallow
FOO=Y with BAR=M, like in this example from the official kconfig docs:
```
config FOO
tristate "Support for foo hardware"
depends on BAR if BAR
```
However, in my testing, neither of these constructs are necessary to
achieve that.
A very standard 'depends on BAR' also disallows FOO=Y with BAR=M.
As I'm working on my SMT solver for Kconfig, I need help understanding
what else I'm missing about these two constructs.
Unless it's just more readable to you all than 'depends on X'?
- Julian Braha
next prev parent reply other threads:[~2026-07-04 13:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-15 23:06 [PATCH v3] kconfig: Support conditional deps using "depends on X if Y" Graham Roff
2025-12-19 19:56 ` Nathan Chancellor
2026-01-04 22:49 ` Randy Dunlap
2026-01-06 22:06 ` Nathan Chancellor
2026-07-04 13:23 ` Julian Braha [this message]
2026-07-04 15:33 ` Arnd Bergmann
2026-07-04 16:18 ` Julian Braha
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=955bf67f-309d-45d4-ac0d-2f53577aa18e@gmail.com \
--to=julianbraha@gmail.com \
--cc=arnd@arndb.de \
--cc=corbet@lwn.net \
--cc=grahamr@qti.qualcomm.com \
--cc=jani.nikula@linux.intel.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
--cc=nathan@kernel.org \
--cc=nico@fluxnic.net \
--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