* Kconfig rules (depends, imply)
@ 2022-05-31 12:14 Muni Sekhar
2022-05-31 20:25 ` Randy Dunlap
0 siblings, 1 reply; 3+ messages in thread
From: Muni Sekhar @ 2022-05-31 12:14 UTC (permalink / raw)
To: kernelnewbies; +Cc: LKML
Hi all,
menuconfig SOUNDWIRE
tristate "SoundWire support"
depends on ACPI || OF
"depends on ACPI || OF" mean, SOUNDWIRE depends on both ACPI and OF modules?
config SOUNDWIRE_QCOM
tristate "Qualcomm SoundWire Master driver"
imply SLIMBUS
What does "imply SLIMBUS" mean?
--
Thanks,
Sekhar
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Kconfig rules (depends, imply)
2022-05-31 12:14 Kconfig rules (depends, imply) Muni Sekhar
@ 2022-05-31 20:25 ` Randy Dunlap
2022-06-01 6:33 ` Muni Sekhar
0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2022-05-31 20:25 UTC (permalink / raw)
To: Muni Sekhar, kernelnewbies; +Cc: LKML
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
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Kconfig rules (depends, imply)
2022-05-31 20:25 ` Randy Dunlap
@ 2022-06-01 6:33 ` Muni Sekhar
0 siblings, 0 replies; 3+ messages in thread
From: Muni Sekhar @ 2022-06-01 6:33 UTC (permalink / raw)
To: Randy Dunlap; +Cc: LKML, kernelnewbies
Thank you for the clarification.
On Wed, Jun 1, 2022 at 1:55 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>
> 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
--
Thanks,
Sekhar
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-06-01 6:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-31 12:14 Kconfig rules (depends, imply) Muni Sekhar
2022-05-31 20:25 ` Randy Dunlap
2022-06-01 6:33 ` Muni Sekhar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).