kconfig: report select on a depending option

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jan Engelhardt
Date: Thursday, March 18, 2010 - 2:21 am

Hi,


With the following combination of Kconfig config options, I can select 
TEST_Z, which will select TEST_X, even if TEST_Y=n. It also allows for 
awkward situations like TEST_Y=M, TEST_X=y, TEST_Z=y, which would yield 
a link time error when X uses Y's symbols.
Is there a way to have such potential errors reported with kconfig?

config TEST_Y
	tristate "Y"

config TEST_X
	depends on Y
	tristate "X"

config TEST_Z
	select TEST_Y
	tristate "Z"

thanks,
Jan
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
kconfig: report select on a depending option, Jan Engelhardt, (Thu Mar 18, 2:21 am)
Re: kconfig: report select on a depending option, =?UTF-8?Q?Am=C3=A9ri ..., (Thu Mar 18, 2:31 am)
Re: kconfig: report select on a depending option, Michal Marek, (Thu Mar 18, 3:12 am)