aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDon Mullis <dwm@meer.net>2006-12-10 05:18:37 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-10 12:55:39 -0500
commitbf4735a46a6b8dfc1a951f05683e80374d8baa70 (patch)
tree6ac5cafb9e3287446549a56161ca6843cf60377e
parentd53ef07ab45085c0b06b652d588aa49b8ba41458 (diff)
[PATCH] Kconfig refactoring for better menu nesting
Refactor Kconfig content to maximize nesting of menus by menuconfig and xconfig. Tested by simultaneously running `make xconfig` with and without patch, and comparing displays. Signed-off-by: Don Mullis <dwm@meer.net> Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Cc: Sam Ravnborg <sam@ravnborg.org> Cc: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/parport/Kconfig6
-rw-r--r--drivers/pci/hotplug/Kconfig3
-rw-r--r--drivers/serial/Kconfig53
-rw-r--r--lib/Kconfig.debug49
4 files changed, 56 insertions, 55 deletions
diff --git a/drivers/parport/Kconfig b/drivers/parport/Kconfig
index c7fa28a28b9f..36c6a1bfe558 100644
--- a/drivers/parport/Kconfig
+++ b/drivers/parport/Kconfig
@@ -82,9 +82,6 @@ config PARPORT_PC_PCMCIA
82 Say Y here if you need PCMCIA support for your PC-style parallel 82 Say Y here if you need PCMCIA support for your PC-style parallel
83 ports. If unsure, say N. 83 ports. If unsure, say N.
84 84
85config PARPORT_NOT_PC
86 bool
87
88config PARPORT_IP32 85config PARPORT_IP32
89 tristate "SGI IP32 builtin port (EXPERIMENTAL)" 86 tristate "SGI IP32 builtin port (EXPERIMENTAL)"
90 depends on SGI_IP32 && PARPORT && EXPERIMENTAL 87 depends on SGI_IP32 && PARPORT && EXPERIMENTAL
@@ -158,5 +155,8 @@ config PARPORT_1284
158 transfer modes. Also say Y if you want device ID information to 155 transfer modes. Also say Y if you want device ID information to
159 appear in /proc/sys/dev/parport/*/autoprobe*. It is safe to say N. 156 appear in /proc/sys/dev/parport/*/autoprobe*. It is safe to say N.
160 157
158config PARPORT_NOT_PC
159 bool
160
161endmenu 161endmenu
162 162
diff --git a/drivers/pci/hotplug/Kconfig b/drivers/pci/hotplug/Kconfig
index 6e780db9454d..adce4204d87d 100644
--- a/drivers/pci/hotplug/Kconfig
+++ b/drivers/pci/hotplug/Kconfig
@@ -76,7 +76,8 @@ config HOTPLUG_PCI_IBM
76 76
77config HOTPLUG_PCI_ACPI 77config HOTPLUG_PCI_ACPI
78 tristate "ACPI PCI Hotplug driver" 78 tristate "ACPI PCI Hotplug driver"
79 depends on (!ACPI_DOCK && ACPI && HOTPLUG_PCI) || (ACPI_DOCK && HOTPLUG_PCI) 79 depends on HOTPLUG_PCI
80 depends on (!ACPI_DOCK && ACPI) || (ACPI_DOCK)
80 help 81 help
81 Say Y here if you have a system that supports PCI Hotplug using 82 Say Y here if you have a system that supports PCI Hotplug using
82 ACPI. 83 ACPI.
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index fc12d5df10e2..0b36dd5cdac2 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -151,32 +151,6 @@ config SERIAL_8250_MANY_PORTS
151 say N here to save some memory. You can also say Y if you have an 151 say N here to save some memory. You can also say Y if you have an
152 "intelligent" multiport card such as Cyclades, Digiboards, etc. 152 "intelligent" multiport card such as Cyclades, Digiboards, etc.
153 153
154config SERIAL_8250_SHARE_IRQ
155 bool "Support for sharing serial interrupts"
156 depends on SERIAL_8250_EXTENDED
157 help
158 Some serial boards have hardware support which allows multiple dumb
159 serial ports on the same board to share a single IRQ. To enable
160 support for this in the serial driver, say Y here.
161
162config SERIAL_8250_DETECT_IRQ
163 bool "Autodetect IRQ on standard ports (unsafe)"
164 depends on SERIAL_8250_EXTENDED
165 help
166 Say Y here if you want the kernel to try to guess which IRQ
167 to use for your serial port.
168
169 This is considered unsafe; it is far better to configure the IRQ in
170 a boot script using the setserial command.
171
172 If unsure, say N.
173
174config SERIAL_8250_RSA
175 bool "Support RSA serial ports"
176 depends on SERIAL_8250_EXTENDED
177 help
178 ::: To be written :::
179
180# 154#
181# Multi-port serial cards 155# Multi-port serial cards
182# 156#
@@ -199,7 +173,6 @@ config SERIAL_8250_ACCENT
199 To compile this driver as a module, choose M here: the module 173 To compile this driver as a module, choose M here: the module
200 will be called 8250_accent. 174 will be called 8250_accent.
201 175
202
203config SERIAL_8250_BOCA 176config SERIAL_8250_BOCA
204 tristate "Support Boca cards" 177 tristate "Support Boca cards"
205 depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS 178 depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
@@ -230,6 +203,32 @@ config SERIAL_8250_HUB6
230 To compile this driver as a module, choose M here: the module 203 To compile this driver as a module, choose M here: the module
231 will be called 8250_hub6. 204 will be called 8250_hub6.
232 205
206config SERIAL_8250_SHARE_IRQ
207 bool "Support for sharing serial interrupts"
208 depends on SERIAL_8250_EXTENDED
209 help
210 Some serial boards have hardware support which allows multiple dumb
211 serial ports on the same board to share a single IRQ. To enable
212 support for this in the serial driver, say Y here.
213
214config SERIAL_8250_DETECT_IRQ
215 bool "Autodetect IRQ on standard ports (unsafe)"
216 depends on SERIAL_8250_EXTENDED
217 help
218 Say Y here if you want the kernel to try to guess which IRQ
219 to use for your serial port.
220
221 This is considered unsafe; it is far better to configure the IRQ in
222 a boot script using the setserial command.
223
224 If unsure, say N.
225
226config SERIAL_8250_RSA
227 bool "Support RSA serial ports"
228 depends on SERIAL_8250_EXTENDED
229 help
230 ::: To be written :::
231
233config SERIAL_8250_MCA 232config SERIAL_8250_MCA
234 tristate "Support 8250-type ports on MCA buses" 233 tristate "Support 8250-type ports on MCA buses"
235 depends on SERIAL_8250 != n && MCA 234 depends on SERIAL_8250 != n && MCA
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 6eccc643c32e..0701ddda1df8 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -47,6 +47,30 @@ config UNUSED_SYMBOLS
47 you really need it, and what the merge plan to the mainline kernel for 47 you really need it, and what the merge plan to the mainline kernel for
48 your module is. 48 your module is.
49 49
50config DEBUG_FS
51 bool "Debug Filesystem"
52 depends on SYSFS
53 help
54 debugfs is a virtual file system that kernel developers use to put
55 debugging files into. Enable this option to be able to read and
56 write to these files.
57
58 If unsure, say N.
59
60config HEADERS_CHECK
61 bool "Run 'make headers_check' when building vmlinux"
62 depends on !UML
63 help
64 This option will extract the user-visible kernel headers whenever
65 building the kernel, and will run basic sanity checks on them to
66 ensure that exported files do not attempt to include files which
67 were not exported, etc.
68
69 If you're making modifications to header files which are
70 relevant for userspace, say 'Y', and check the headers
71 exported to $(INSTALL_HDR_PATH) (usually 'usr/include' in
72 your build tree), to make sure they're suitable.
73
50config DEBUG_KERNEL 74config DEBUG_KERNEL
51 bool "Kernel debugging" 75 bool "Kernel debugging"
52 help 76 help
@@ -302,16 +326,6 @@ config DEBUG_INFO
302 326
303 If unsure, say N. 327 If unsure, say N.
304 328
305config DEBUG_FS
306 bool "Debug Filesystem"
307 depends on SYSFS
308 help
309 debugfs is a virtual file system that kernel developers use to put
310 debugging files into. Enable this option to be able to read and
311 write to these files.
312
313 If unsure, say N.
314
315config DEBUG_VM 329config DEBUG_VM
316 bool "Debug VM" 330 bool "Debug VM"
317 depends on DEBUG_KERNEL 331 depends on DEBUG_KERNEL
@@ -372,20 +386,6 @@ config FORCED_INLINING
372 become the default in the future, until then this option is there to 386 become the default in the future, until then this option is there to
373 test gcc for this. 387 test gcc for this.
374 388
375config HEADERS_CHECK
376 bool "Run 'make headers_check' when building vmlinux"
377 depends on !UML
378 help
379 This option will extract the user-visible kernel headers whenever
380 building the kernel, and will run basic sanity checks on them to
381 ensure that exported files do not attempt to include files which
382 were not exported, etc.
383
384 If you're making modifications to header files which are
385 relevant for userspace, say 'Y', and check the headers
386 exported to $(INSTALL_HDR_PATH) (usually 'usr/include' in
387 your build tree), to make sure they're suitable.
388
389config RCU_TORTURE_TEST 389config RCU_TORTURE_TEST
390 tristate "torture tests for RCU" 390 tristate "torture tests for RCU"
391 depends on DEBUG_KERNEL 391 depends on DEBUG_KERNEL
@@ -402,6 +402,7 @@ config RCU_TORTURE_TEST
402 402
403config LKDTM 403config LKDTM
404 tristate "Linux Kernel Dump Test Tool Module" 404 tristate "Linux Kernel Dump Test Tool Module"
405 depends on DEBUG_KERNEL
405 depends on KPROBES 406 depends on KPROBES
406 default n 407 default n
407 help 408 help