netdev
[Top] [All Lists]

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

To: Sridhar Samudrala <sri@xxxxxxxxxx>
Subject: Re: Cleaner way to conditionally disallow a CONFIG option as static
From: Roman Zippel <zippel@xxxxxxxxxxxxxx>
Date: Wed, 10 Mar 2004 04:38:23 +0100 (CET)
Cc: kaos@xxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <Pine.LNX.4.58.0403081659170.1656@xxxxxxxxxxxxxxxxxxxxx>
References: <Pine.LNX.4.58.0403081659170.1656@xxxxxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>