* Cleaner way to conditionally disallow a CONFIG option as static
@ 2004-03-09 1:22 Sridhar Samudrala
2004-03-10 3:38 ` Roman Zippel
0 siblings, 1 reply; 3+ messages in thread
From: Sridhar Samudrala @ 2004-03-09 1:22 UTC (permalink / raw)
To: kaos; +Cc: linux-kernel, netdev
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cleaner way to conditionally disallow a CONFIG option as static
2004-03-09 1:22 Cleaner way to conditionally disallow a CONFIG option as static Sridhar Samudrala
@ 2004-03-10 3:38 ` Roman Zippel
2004-03-10 18:16 ` Sridhar Samudrala
0 siblings, 1 reply; 3+ messages in thread
From: Roman Zippel @ 2004-03-10 3:38 UTC (permalink / raw)
To: Sridhar Samudrala; +Cc: kaos, linux-kernel, netdev
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cleaner way to conditionally disallow a CONFIG option as static
2004-03-10 3:38 ` Roman Zippel
@ 2004-03-10 18:16 ` Sridhar Samudrala
0 siblings, 0 replies; 3+ messages in thread
From: Sridhar Samudrala @ 2004-03-10 18:16 UTC (permalink / raw)
To: Roman Zippel; +Cc: kaos, linux-kernel, netdev
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-03-10 18:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-09 1:22 Cleaner way to conditionally disallow a CONFIG option as static Sridhar Samudrala
2004-03-10 3:38 ` Roman Zippel
2004-03-10 18:16 ` Sridhar Samudrala
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®