Re: what means duplicate "config" entries in Kconfig file?

Robert P. J. Day (rpjday@mindspring.com)
Wed, 9 Apr 2003 12:43:12 -0400 (EDT)


On Wed, 9 Apr 2003, Roman Zippel wrote:

> On Wed, 9 Apr 2003, Robert P. J. Day wrote:

> > i'm not sure what it means to have two config entries with
> > identical symbols. can someone clarify this? i'm just confused
> > (which should not come as a surprise at this point).
>
> You can have as much entries as you want, the only limit is that you can
> only have one user prompt per config entry and the type must not conflict.
> This example could have been done with a single entry and this is usually
> prefered to keep it more compact, but you don't have to.

not to belabor this, but what does it mean when the two dependencies
are mutually exclusive, as in the example i provided:

-----------------------

config MCA
bool "MCA support"
depends on !(X86_VISWS || X86_VOYAGER)
help
MicroChannel Architecture is found in some IBM PS/2 machines and
laptops. It is a bus system similar to PCI or ISA. See
<file:Documentation/mca.txt> (and especially the web page given
there) before attempting to build an MCA bus kernel.

config MCA
depends on X86_VOYAGER
default y if X86_VOYAGER

---------------------

the two options X86_VISWS and X86_VOYAGER are simple "bool"s
representing the (radio-box) subarchitecture type.

the first seems to represent a dependency of *neither* of those
two listed options, while the second config *depends* on one of
them.

how exactly do you reconcile what looks like contradictory
dependencies for the same config entry?

rday,
wondering just how badly he's embarrassing himself by now ...

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/