Skip to contentSkip to conversation

Kconfig

DISCUSSION gwr 1 participant 1 message Aug 22, 2012

lore
Share & tools
lore

gwr

author
#0 lore raw

Hello,

I am working on kernel 2.6.32.38, and I see :

~~~~~~~~~~~~~~~~~~~~~~~~~~

arch/x86/Kconfig, 202 :
=============

config USE_GENERIC_SMP_HELPERS
def_bool y
depends on SMP

~~~~~~~~~~~~~~~~~~~~~~~~~~

arch/Kconfig, 112 :
===========

config USE_GENERIC_SMP_HELPERS
bool

~~~~~~~~~~~~~~~~~~~~~~~~~~

Although we have this in Kconfig documentation,
================================================
A config option can be defined multiple times with the same name, but every definition can have only a single input prompt and the type must not conflict.
================================================

here,
- the first definition is a child of "Linux Kernel Configuration for
x86" MainMenu ( arch/x86/Kconfig, 1 )
- the second definition is a child of "General setup" Menu (
init/Kconfig, 24 )

So the hierarchy is different ; Can someone give explanations on this ?

Thx