From: Willy Tarreau <willy@w.ods.org>
To: joshk@triplehelix.org, linux-kernel@vger.kernel.org
Subject: Re: config language shortcomings in 2.4
Date: Thu, 19 Aug 2004 09:28:27 +0200 [thread overview]
Message-ID: <20040819072826.GA16709@alpha.home.local> (raw)
In-Reply-To: <20040819071229.GA7598@darjeeling.triplehelix.org>
Hi,
On Thu, Aug 19, 2004 at 12:12:29AM -0700, Joshua Kwan wrote:
> Eventually we continued droning through the corner cases until reaching
>
> if [ "$CONFIG_EXPERIMENTAL" = "y" -a \
> "$CONFIG_HOTPLUG" = "y" -a \
> "$CONFIG_FW_LOADER" = "y" -o "$CONFIG_FW_LOADER" = "m" -a \
> "$CONFIG_CRC32" = "y" -o "$CONFIG_CRC32" = "m" ]; then
> dep_tristate 'Broadcom Tigon3 support' CONFIG_TIGON3 $CONFIG_PCI $CONFIG_FW_LOADER $CONFIG_CRC32
> fi
>
> which finally has the desired effect.
I'm surprized, because I think you have a precedence problem here. Your 'if'
condition will be true if either :
CONFIG_CRC32 = m
or
CONFIG_CRC32 = y and CONFIG_FW_LOADER = m
or
CONFIG_FW_LOADER = y and CONFIG_HOTPLUG = y and CONFIG_EXPERIMENTAL = y
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.
Regards,
Willy
next prev parent reply other threads:[~2004-08-19 7:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-19 7:12 Joshua Kwan
2004-08-19 7:28 ` Willy Tarreau [this message]
2004-08-24 5:04 ` Joshua Kwan
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=20040819072826.GA16709@alpha.home.local \
--to=willy@w.ods.org \
--cc=joshk@triplehelix.org \
--cc=linux-kernel@vger.kernel.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
Powered by JetHome