mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sridhar Samudrala <sri@us.ibm.com>
To: kaos@ocs.com.au
Cc: linux-kernel@vger.kernel.org, netdev@oss.sgi.com
Subject: Cleaner way to conditionally disallow a CONFIG option as static
Date: Mon, 8 Mar 2004 17:22:35 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.58.0403081659170.1656@localhost.localdomain> (raw)

SCTP is allowed to be static only when IPV6 is also configured as static or
not enabled. If IPV6 is configured as a module, SCTP also has to be a module.
This is done right now in the following hackish ways in 2.6 and 2.4 using an
additional config option(CONFIG_IPV6_SCTP__).

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__
--------------------------------------------------------
In 2.4, net/sctp/Config.in

if [ "$CONFIG_IPV6" != "n" ]; then
   define_bool CONFIG_IPV6_SCTP__ $CONFIG_IPV6
else
   define_bool CONFIG_IPV6_SCTP__ y
fi

dep_tristate '  The SCTP Protocol (EXPERIMENTAL)' CONFIG_IP_SCTP $CONFIG_IPV6_SCTP__
--------------------------------------------------------

Is there a much simpler and cleaner way to accomplish this in 2.6 and 2.4
config files?

Thanks
Sridhar

             reply	other threads:[~2004-03-09  1:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-09  1:22 Sridhar Samudrala [this message]
2004-03-10  3:38 ` Roman Zippel
2004-03-10 18:16   ` Sridhar Samudrala

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.0403081659170.1656@localhost.localdomain \
    --to=sri@us.ibm.com \
    --cc=kaos@ocs.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@oss.sgi.com \
    /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®