From: Randy Dunlap <rdunlap@infradead.org>
To: Muni Sekhar <munisekharrms@gmail.com>,
kernelnewbies <kernelnewbies@kernelnewbies.org>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: Kconfig rules (depends, imply)
Date: Tue, 31 May 2022 13:25:52 -0700 [thread overview]
Message-ID: <d136df0c-34fc-d21c-1353-fa82deb62975@infradead.org> (raw)
In-Reply-To: <CAHhAz+gUpxzukjde1rMqRcPre8yMROBd3yQTCm89wMGb2zWriw@mail.gmail.com>
Hi--
On 5/31/22 05:14, Muni Sekhar wrote:
> Hi all,
>
> menuconfig SOUNDWIRE
> tristate "SoundWire support"
> depends on ACPI || OF
>
> "depends on ACPI || OF" mean, SOUNDWIRE depends on both ACPI and OF modules?
>
"||" is logical OR, so SOUNDWIRE depends on either ACPI or OF (or both
of them can be enabled).
>
> config SOUNDWIRE_QCOM
> tristate "Qualcomm SoundWire Master driver"
> imply SLIMBUS
>
> What does "imply SLIMBUS" mean?
See Documentation/kbuild/kconfig-language.rst:
- weak reverse dependencies: "imply" <symbol> ["if" <expr>]
This is similar to "select" as it enforces a lower limit on another
symbol except that the "implied" symbol's value may still be set to n
from a direct dependency or with a visible prompt.
So (in your example) SLIMBUS is desired but not required.
That means that the code that is built for SOUNDWIRE_QCOM
probably needs to use IS_REACHABLE(CONFIG_SLIMBUS) to
see if that SLIMBUS code is available at build time.
HTH.
--
~Randy
next prev parent reply other threads:[~2022-05-31 20:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-31 12:14 Muni Sekhar
2022-05-31 20:25 ` Randy Dunlap [this message]
2022-06-01 6:33 ` Muni Sekhar
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=d136df0c-34fc-d21c-1353-fa82deb62975@infradead.org \
--to=rdunlap@infradead.org \
--cc=kernelnewbies@kernelnewbies.org \
--cc=linux-kernel@vger.kernel.org \
--cc=munisekharrms@gmail.com \
/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
all inboxes | Powered by JetHome®