Re: Kconfig 'depend' vs. 'select'

From: David Miller
Date: Mon Apr 28 2008 - 04:54:26 EST


From: Adrian Bunk <bunk@xxxxxxxxxx>
Date: Mon, 28 Apr 2008 11:13:19 +0300

> The non-modular is only true for "bool selects tristate".
>
> You are talking about things like:
>
> config IWL4965_LEDS
> bool "Enable LEDS features in iwl4965 driver"
> select LEDS_CLASS
>
> The problem here is that from a kconfig perspective IWL4965_LEDS could
> as well be an own driver you want for some reason non-modular.
>
> The solution is to do the following instead:
>
> config IWL4965
> tristate "Intel Wireless WiFi 4965AGN"
> select LEDS_CLASS if IWL4965_LEDS

Ok, thanks Adrian.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/