From: Joshua Kwan <joshk@triplehelix.org>
To: Willy Tarreau <willy@w.ods.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: config language shortcomings in 2.4
Date: Mon, 23 Aug 2004 22:04:22 -0700 [thread overview]
Message-ID: <412ACC56.1020902@triplehelix.org> (raw)
In-Reply-To: <20040819072826.GA16709@alpha.home.local>
Willy Tarreau wrote:
> Anyway, I believe that you have no other choice due to the way dep_tristate
> works. What would you expect it to do when it depends on 3 variables which
> are respectively 'n', 'm' and 'y' ? Honnestly, without looking closer at its
> implementation, I would not be able to give a valid response.
>
> BTW, have you tried defining a temporary variable somewhere ? There are
> portions of config where you see things such as :
>
> if [ CONFIG_XX = "y" -o CONFIG_YY = "m" -a CONFIG_ZZ = "y" ]; then
> TEMP=y
> fi
> dep_tristate "cool feature" CONFIG_COOL $TEMP
>
> Perhaps it could help you define complex combinations.
Sorry for the belated response, but certainly it should not be necessary
to do:
if [ "$CONFIG_FW_LOADER" = "m" -o "$CONFIG_FW_LOADER" = "y" ]; then
HAVE_SOME_FW_LOADER=y
fi
if [ "$CONFIG_CRC32" = "m" -o "$CONFIG_CRC32" = "m" ]; then
HAVE_SOME_CRC32=y
fi
if [ "$HAVE_SOME_CRC32" = "y" -a "$HAVE_SOME_FW_LOADER" = "y" ]; then
dep_tristate 'Broadcom Tigon3 support' CONFIG_TIGON3 $CONFIG_PCI
$HAVE_SOME_FW_LOADER $HAVE_SOME_CRC32
fi
just to enforce an explicit dependency on some form of CONFIG_CRC32 and
CONFIG_FW_LOADER. This is necessary because "$CONFIG_CRC32" != "n"
doesn't work the way you think it would.
Anyway, it's all very disgusting and I'm inclined to just ignore it and
maybe some benevolent soul will one day port Kconfig back to 2.4.
--
Joshua Kwan
next prev parent reply other threads:[~2004-08-24 5:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-19 7:12 config language shortcomings in 2.4 Joshua Kwan
2004-08-19 7:28 ` Willy Tarreau
2004-08-24 5:04 ` Joshua Kwan [this message]
2004-08-24 5:19 ` Nigel Cunningham
2004-08-24 18:35 ` Marcelo Tosatti
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=412ACC56.1020902@triplehelix.org \
--to=joshk@triplehelix.org \
--cc=linux-kernel@vger.kernel.org \
--cc=willy@w.ods.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