Re: linux-2.4.6-pre6: numerous dep_{bool,tristate} $CONFIG_ARCH_xxx bugs

Russell King
2001-06-30T09:20:45Z

On Sat, Jun 30, 2001 at 08:26:22AM +0100, Alan Cox wrote:
> #2
> dep_tristate $FOO $BAR
>
> to say 'FOO requires BAR and must be a similar setting _IF_CONFIGURED_'

Err, how can $BAR be undefined? Configure sets all config variables which
are answered with 'n' to 'n'.

Therefore, if you do:

bool 'PNP?' PNP

dep_tristate 'FOO?' FOO $PNP

and you answer 'n' to PNP, then FOO will be 'n'.

Can you extract an example where #2 is actually used?

--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux