Re: Cleaner way to conditionally disallow a CONFIG option as static

From: Roman Zippel
Date: Tue Mar 09 2004 - 22:42:48 EST


Hi,

On Mon, 8 Mar 2004, Sridhar Samudrala wrote:

> In 2.6, net/sctp/Kconfig
>
> config IPV6_SCTP__
> tristate
> default y if IPV6=n
> default IPV6 if IPV6
>
> config IP_SCTP
> tristate "The SCTP Protocol (EXPERIMENTAL)"
> depends on IPV6_SCTP__

This can be written as:

config IP_SCTP
tristate "The SCTP Protocol (EXPERIMENTAL)"
depends on IPV6 || IPV6=n

bye, Roman
-
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/