Re: [RFC PATCH] Kconfig: Enable Kconfig fragments to be used for defconfig

From
Arnd Bergmann <arnd@arndb.de>
Date
2010-07-16 20:11:38
Also in
linux-arm-kernel, linux-kbuild, lkml
Reply to
Linus Torvalds, 2010-07-16
On Friday 16 July 2010 20:46:17 Linus Torvalds wrote:
Maybe a full "solver" is unnecessary, for example, but just a simple
"automatically enable the direct dependencies and scream when it's not
simple any more" would take care of 99% of the common cases, and then
warn when it needs some manual help.
I think the recursion should also be limited to cases where the
dependency is a valid selectable option, i.e. not for

# this architecture does not support MMIO
config HAS_IOMEM 
	def_bool 'n'

config PCI
	bool "PCI Device drivers"
	depends on HAS_IOMEM

config FOO
	tristate "Some device driver"
	depends on PCI

In this case, it would be straightforward for the solver to enable PCI
for when something selects CONFIG_FOO, but it should print a warning
if this is attempted while HAS_IOMEM is unconditionally disabled,
since that puts it into the "not simple" category.

	Arnd
Thread (28 messages) 28 messages, 8 authors, last reply 2010-07-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help