Config.in (2.4) -> Kconfig (2.6)

From: Lukas Ruf (ruf_at_rawip.org)
Date: 05/26/04


Date: 26 May 2004 19:11:13 +0100

Dear all,

after reading 'Documentation/kbuild/kconfig-language.txt' several
times, I dare ask for help:

In 2.4's Config.in, there was the possibility to 'define_tristate' a
configuration setting depending on another one.

I assume this feature must be available in 2.6's Kconfig too.
However, I cannot find any information that helps me in this regard.

In concrete:
in 2.4 I have had:

  if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
    dep_tristate ' PromethOS ANN (ipv4) (EXPERIMENTAL)' \
          CONFIG_IP_NF_PROMETHOS $CONFIG_IP_NF_IPTABLES
    if [ "$CONFIG_IP_NF_PROMETHOS" != "n" ]; then
      define_tristate CONFIG_IP_NF_PROMETHOS_TARGET \
          $CONFIG_IP_NF_PROMETHOS

In 2.6, so far I have:

  config IP_NF_PROMETHOS
    tristate 'PromethOS ANN (ipv4)'
    depends on EXPERIMENTAL && IP_NF_IPTABLES
    help
      This options makes Linux a high-performance active network node.

However, I have not understood so far, how I can 'define_tristate'
in 2.6's Kconfig.

I would be very thankful for any help!

wbr,
Lukas

--
Lukas Ruf           | Wanna know anything about raw |
<http://www.lpr.ch> | IP? -> <http://www.rawip.org> |
eMail Style Guide: <http://www.rawip.org/style.html>|