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

Randy.Dunlap (rddunlap@osdl.org)
Wed, 9 Apr 2003 09:08:30 -0700


On Wed, 9 Apr 2003 08:30:34 -0400 (EDT) "Robert P. J. Day" <rpjday@mindspring.com> wrote:

| [i just tried to email the Kconfig maintainer, but sendmail
| suggested that that mail might not have gotten through, so i'll
| toss this out here.]
|
| in my quest to clean up even more kernel config menus,
| i ran across the following oddity in arch/i386/Kconfig:
|
| -----
|
| 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
|
| source "drivers/mca/Kconfig"
|
| -----
|
| 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).

This should be OK. The "depends" clauses are different,
so in the second case, MCA defaults to set/enabled for X86_VOYAGER
(forced, not a user option),
and in the first case, MCA is a user config option.

--
~Randy
-
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/