Re: [PATCH v2 1/5] kconfig: introduce the "imply" keyword

From: Paul Bolle
Date: Fri Oct 28 2016 - 18:09:16 EST


On Thu, 2016-10-27 at 23:10 -0400, Nicolas Pitre wrote:
> On Fri, 28 Oct 2016, Paul Bolle wrote:
> > And in your example BAR is bool, right? Does the above get more
> > complicated if BAR would be tristate?
>
> If BAR=m then implying BAZ from FOO=y will force BAZ to y or n,Â
> bypassing the restriction provided by BAR like "select" does.ÂÂThis isÂ
> somewhat questionable for "select" to do that, and the code emits aÂ
> warning when "select" bypasses a direct dependency set to n, but notÂ
> when set to m. For now "imply" simply tries to be consistent withÂ
> the "select" behavior.

Side note: yes, one can select a symbol that's missing one or more
dependencies. But since Kconfig has two separate methods to describe
relations (ie, selecting and depending) there's logically the
possibility of conflict. So we need a rule to resolve that conflict.
That rule is: "select" beats "depends on". I don't think that this rule
is less plausible than the opposite rule.


Paul Bolle