mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* your old menuconfig patch series, and select
@ 2008-03-24  4:05 Henrique de Moraes Holschuh
  2008-03-24  4:47 ` Jan Engelhardt
  0 siblings, 1 reply; 4+ messages in thread
From: Henrique de Moraes Holschuh @ 2008-03-24  4:05 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: linux-kernel

Jan,

In your menuconfig patch series to convert menu into menuconfig,
you used "if <new menuconfig symbol" quite often.

That causes serious issues with "select".  E.g. currently "select
LEDS_CLASS" does not work, because it is inside a "if NEW_LEDS".

Of course, not much stuff is the target of "select", but classes and
their ilk often are.

What's the best solution for this?  Drop the "if <menuconfig symbol>"
and add lots of "depends on <menuconfig symbol>"?  Or hunt down every
symbol selected inside an if and add the required select for the
menuconfig symbol?

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: your old menuconfig patch series, and select
  2008-03-24  4:05 your old menuconfig patch series, and select Henrique de Moraes Holschuh
@ 2008-03-24  4:47 ` Jan Engelhardt
  2008-03-24  6:54   ` Henrique de Moraes Holschuh
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Engelhardt @ 2008-03-24  4:47 UTC (permalink / raw)
  To: Henrique de Moraes Holschuh; +Cc: linux-kernel


On Monday 2008-03-24 05:05, Henrique de Moraes Holschuh wrote:
>
> In your menuconfig patch series to convert menu into menuconfig,
> you used "if <new menuconfig symbol" quite often.
>
> That causes serious issues with "select".  E.g. currently "select
> LEDS_CLASS" does not work, because it is inside a "if NEW_LEDS".
>[...]
> What's the best solution for this?  Drop the "if <menuconfig symbol>"
> and add lots of "depends on <menuconfig symbol>"?  Or hunt down every
> symbol selected inside an if and add the required select for the
> menuconfig symbol?

It "does not work" either if LEDS_CLASS is put outside of the if block
and instead gets a "depends on LEDS_CLASS".

So I am not sure what the problem you perceive really is, other than
"enabling A selecting B depending on (turned off) C"-is-allowed. :)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: your old menuconfig patch series, and select
  2008-03-24  4:47 ` Jan Engelhardt
@ 2008-03-24  6:54   ` Henrique de Moraes Holschuh
  2008-03-24 12:32     ` Jan Engelhardt
  0 siblings, 1 reply; 4+ messages in thread
From: Henrique de Moraes Holschuh @ 2008-03-24  6:54 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: linux-kernel

On Mon, 24 Mar 2008, Jan Engelhardt wrote:
> It "does not work" either if LEDS_CLASS is put outside of the if block
> and instead gets a "depends on LEDS_CLASS".

So, select is not walking the dep chain.  Bad form, that, but I am sure
it is for a good reason.  Well, select NEW_LEDS plus select LED_CLASS it
is, then.  I'd have appreciated the Kconfig toolchain warning me of it,
but maybe I just don't know how to ask it to :-)

Thanks for the fast reply.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: your old menuconfig patch series, and select
  2008-03-24  6:54   ` Henrique de Moraes Holschuh
@ 2008-03-24 12:32     ` Jan Engelhardt
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Engelhardt @ 2008-03-24 12:32 UTC (permalink / raw)
  To: Henrique de Moraes Holschuh; +Cc: linux-kernel


On Monday 2008-03-24 07:54, Henrique de Moraes Holschuh wrote:
> On Mon, 24 Mar 2008, Jan Engelhardt wrote:
>> It "does not work" either if LEDS_CLASS is put outside of the if block
>> and instead gets a "depends on LEDS_CLASS".
>
> So, select is not walking the dep chain.  Bad form, that, but I am sure
> it is for a good reason.  Well, select NEW_LEDS plus select LED_CLASS it
> is, then.  I'd have appreciated the Kconfig toolchain warning me of it,
> but maybe I just don't know how to ask it to :-)

'select' is doing its job — it enables LEDS_CLASS. It leaves NEW_LEDS
off though, since LEDS_CLASS "only" has a 'depends' on NEW_LEDS,
and not a 'select'. This is kind of a discrepancy for Kconfig rather
than a bug; it gets two inputs:
- CONFIG_FOO tells me to enable LEDS_CLASS
- LEDS_CLASS tells me to disable LEDS_CLASS because NEW_LEDS is off
In the end, it leaves LEDS_CLASS=m in the .config file and NEW_LEDS=off.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-24 12:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-24  4:05 your old menuconfig patch series, and select Henrique de Moraes Holschuh
2008-03-24  4:47 ` Jan Engelhardt
2008-03-24  6:54   ` Henrique de Moraes Holschuh
2008-03-24 12:32     ` Jan Engelhardt

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®