From: Sridhar Samudrala <sri@us.ibm.com>
To: Roman Zippel <zippel@linux-m68k.org>
Cc: kaos@ocs.com.au, linux-kernel@vger.kernel.org, netdev@oss.sgi.com
Subject: Re: Cleaner way to conditionally disallow a CONFIG option as static
Date: Wed, 10 Mar 2004 10:16:27 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.58.0403101006390.3016@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.58.0403100437040.27654@serv>
On Wed, 10 Mar 2004, Roman Zippel wrote:
> 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
>
Thanks. Your 2.6 solution helped me come up with the following solution for
2.4 too and avoid the hack.
if [ "$CONFIG_IPV6" = "n" ]; then
tristate ' The SCTP Protocol (EXPERIMENTAL)' CONFIG_IP_SCTP
else
dep_tristate ' The SCTP Protocol (EXPERIMENTAL)' CONFIG_IP_SCTP $CONFIG_IPV6
fi
Thanks
-Sridhar
prev parent reply other threads:[~2004-03-10 18:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-09 1:22 Sridhar Samudrala
2004-03-10 3:38 ` Roman Zippel
2004-03-10 18:16 ` Sridhar Samudrala [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.58.0403101006390.3016@localhost.localdomain \
--to=sri@us.ibm.com \
--cc=kaos@ocs.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@oss.sgi.com \
--cc=zippel@linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®