Skip to content

Commit

Permalink
Kconfig: Extend "menuconfig" for modules to simplify Kconfig file
Browse files Browse the repository at this point in the history
Given that the init/Kconfig file uses a "menuconfig" directive for
modules already, might as well wrap all the submenu entries in an "if"
to toss all those dependencies.

Signed-off-by: Robert P. J. Day <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
rpjday authored and sravnborg committed Aug 6, 2008
1 parent 0758416 commit 0b0de14
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions init/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -845,9 +845,10 @@ menuconfig MODULES

If unsure, say Y.

if MODULES

config MODULE_FORCE_LOAD
bool "Forced module loading"
depends on MODULES
default n
help
Allow loading of modules without version information (ie. modprobe
Expand All @@ -856,7 +857,6 @@ config MODULE_FORCE_LOAD

config MODULE_UNLOAD
bool "Module unloading"
depends on MODULES
help
Without this option you will not be able to unload any
modules (note that some modules may not be unloadable
Expand All @@ -875,7 +875,6 @@ config MODULE_FORCE_UNLOAD

config MODVERSIONS
bool "Module versioning support"
depends on MODULES
help
Usually, you have to use modules compiled with your kernel.
Saying Y here makes it sometimes possible to use modules
Expand All @@ -886,7 +885,6 @@ config MODVERSIONS

config MODULE_SRCVERSION_ALL
bool "Source checksum for all modules"
depends on MODULES
help
Modules which contain a MODULE_VERSION get an extra "srcversion"
field inserted into their modinfo section, which contains a
Expand All @@ -898,11 +896,12 @@ config MODULE_SRCVERSION_ALL

config KMOD
def_bool y
depends on MODULES
help
This is being removed soon. These days, CONFIG_MODULES
implies CONFIG_KMOD, so use that instead.

endif # MODULES

config STOP_MACHINE
bool
default y
Expand Down

0 comments on commit 0b0de14

Please sign in to comment.