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

Keith Owens
2001-06-29T14:21:42Z

On Fri, 29 Jun 2001 07:10:51 -0700,
"Adam J. Richter" <adam@yggdrasil.com> wrote:
> The Config.in files in linux-2.4.6-pre6 have at least 28 cases
>where a dep_bool or dep_tristate of the following form:
> dep_bool CONFIG_SOMETHING $CONFIG_ARCH_somearch
> I will put together patch to convert this to ugly but correct
>"if then; ... ; fi" statements later today if nobody has any better
>suggestions.

Create arch/Config.in which contains

define_bool CONFIG_ARCH_i386 n
define_bool CONFIG_ARCH_ia64 n
define_bool CONFIG_ARCH_sparc n

etc., then change each of the arch/xxx/Config.in files to
source arch/Config.in as their first line first. Still ugly but the
mainline configs will be much more readable. It also guarantees that
any future tests on $CONFIG_ARCH_somearch will work, even if the code
does not use if statements.