modutils: fix config options dependency
module.aliases and module.symbols files have no use in modprobe-small implementation. So FEATURE_MODUTILS_ALIAS and FEATURE_MODUTILS_SYMBOLS will depend on !MODPROBE_SMALL. The try_to_mmap_module() function is not called in modprobe-small.c, so I will let FEATURE_INSMOD_TRY_MMAP depend on !MODPROBE_SMALL for now. Signed-off-by: Kang-Che Sung <explorer09@gmail.com> Likewise, FEATURE_2_4_MODULES is not used by modprobe-small. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
67f6db6b27
commit
065e988e7a
@ -452,15 +452,12 @@ CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED=y
|
|||||||
# Options common to multiple modutils
|
# Options common to multiple modutils
|
||||||
#
|
#
|
||||||
# CONFIG_FEATURE_2_4_MODULES is not set
|
# CONFIG_FEATURE_2_4_MODULES is not set
|
||||||
CONFIG_FEATURE_INSMOD_TRY_MMAP=y
|
|
||||||
# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set
|
# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set
|
||||||
# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set
|
# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set
|
||||||
# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
|
# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
|
||||||
# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set
|
# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set
|
||||||
# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set
|
# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set
|
||||||
# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set
|
# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set
|
||||||
# CONFIG_FEATURE_MODUTILS_ALIAS is not set
|
|
||||||
# CONFIG_FEATURE_MODUTILS_SYMBOLS is not set
|
|
||||||
CONFIG_DEFAULT_MODULES_DIR="/lib/modules"
|
CONFIG_DEFAULT_MODULES_DIR="/lib/modules"
|
||||||
CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
|
CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
|
||||||
|
|
||||||
|
@ -467,15 +467,12 @@ CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED=y
|
|||||||
# Options common to multiple modutils
|
# Options common to multiple modutils
|
||||||
#
|
#
|
||||||
# CONFIG_FEATURE_2_4_MODULES is not set
|
# CONFIG_FEATURE_2_4_MODULES is not set
|
||||||
# CONFIG_FEATURE_INSMOD_TRY_MMAP is not set
|
|
||||||
# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set
|
# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set
|
||||||
# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set
|
# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set
|
||||||
# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
|
# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
|
||||||
# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set
|
# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set
|
||||||
# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set
|
# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set
|
||||||
# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set
|
# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set
|
||||||
# CONFIG_FEATURE_MODUTILS_ALIAS is not set
|
|
||||||
# CONFIG_FEATURE_MODUTILS_SYMBOLS is not set
|
|
||||||
CONFIG_DEFAULT_MODULES_DIR="/lib/modules"
|
CONFIG_DEFAULT_MODULES_DIR="/lib/modules"
|
||||||
CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
|
CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
|
||||||
|
|
||||||
|
@ -487,15 +487,12 @@ CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED=y
|
|||||||
# Options common to multiple modutils
|
# Options common to multiple modutils
|
||||||
#
|
#
|
||||||
# CONFIG_FEATURE_2_4_MODULES is not set
|
# CONFIG_FEATURE_2_4_MODULES is not set
|
||||||
# CONFIG_FEATURE_INSMOD_TRY_MMAP is not set
|
|
||||||
# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set
|
# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set
|
||||||
# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set
|
# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set
|
||||||
# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
|
# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
|
||||||
# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set
|
# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set
|
||||||
# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set
|
# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set
|
||||||
# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set
|
# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set
|
||||||
# CONFIG_FEATURE_MODUTILS_ALIAS is not set
|
|
||||||
# CONFIG_FEATURE_MODUTILS_SYMBOLS is not set
|
|
||||||
CONFIG_DEFAULT_MODULES_DIR="/lib/modules"
|
CONFIG_DEFAULT_MODULES_DIR="/lib/modules"
|
||||||
CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
|
CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
|
||||||
|
|
||||||
|
@ -597,15 +597,12 @@ CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED=y
|
|||||||
# Options common to multiple modutils
|
# Options common to multiple modutils
|
||||||
#
|
#
|
||||||
# CONFIG_FEATURE_2_4_MODULES is not set
|
# CONFIG_FEATURE_2_4_MODULES is not set
|
||||||
# CONFIG_FEATURE_INSMOD_TRY_MMAP is not set
|
|
||||||
# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set
|
# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set
|
||||||
# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set
|
# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set
|
||||||
# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
|
# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
|
||||||
# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set
|
# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set
|
||||||
# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set
|
# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set
|
||||||
# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set
|
# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set
|
||||||
# CONFIG_FEATURE_MODUTILS_ALIAS is not set
|
|
||||||
# CONFIG_FEATURE_MODUTILS_SYMBOLS is not set
|
|
||||||
CONFIG_DEFAULT_MODULES_DIR="/lib/modules"
|
CONFIG_DEFAULT_MODULES_DIR="/lib/modules"
|
||||||
CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
|
CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
|
||||||
|
|
||||||
|
@ -511,15 +511,12 @@ CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED=y
|
|||||||
# Options common to multiple modutils
|
# Options common to multiple modutils
|
||||||
#
|
#
|
||||||
# CONFIG_FEATURE_2_4_MODULES is not set
|
# CONFIG_FEATURE_2_4_MODULES is not set
|
||||||
# CONFIG_FEATURE_INSMOD_TRY_MMAP is not set
|
|
||||||
# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set
|
# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set
|
||||||
# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set
|
# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set
|
||||||
# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
|
# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
|
||||||
# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set
|
# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set
|
||||||
# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set
|
# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set
|
||||||
# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set
|
# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set
|
||||||
# CONFIG_FEATURE_MODUTILS_ALIAS is not set
|
|
||||||
# CONFIG_FEATURE_MODUTILS_SYMBOLS is not set
|
|
||||||
CONFIG_DEFAULT_MODULES_DIR="/lib/modules"
|
CONFIG_DEFAULT_MODULES_DIR="/lib/modules"
|
||||||
CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
|
CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
|
||||||
|
|
||||||
|
@ -522,15 +522,12 @@ CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED=y
|
|||||||
# Options common to multiple modutils
|
# Options common to multiple modutils
|
||||||
#
|
#
|
||||||
# CONFIG_FEATURE_2_4_MODULES is not set
|
# CONFIG_FEATURE_2_4_MODULES is not set
|
||||||
# CONFIG_FEATURE_INSMOD_TRY_MMAP is not set
|
|
||||||
# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set
|
# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set
|
||||||
# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set
|
# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set
|
||||||
# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
|
# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
|
||||||
# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set
|
# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set
|
||||||
# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set
|
# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set
|
||||||
# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set
|
# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set
|
||||||
# CONFIG_FEATURE_MODUTILS_ALIAS is not set
|
|
||||||
# CONFIG_FEATURE_MODUTILS_SYMBOLS is not set
|
|
||||||
CONFIG_DEFAULT_MODULES_DIR="/system/lib/modules"
|
CONFIG_DEFAULT_MODULES_DIR="/system/lib/modules"
|
||||||
CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
|
CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ comment "Options common to multiple modutils"
|
|||||||
config FEATURE_2_4_MODULES
|
config FEATURE_2_4_MODULES
|
||||||
bool "Support version 2.2/2.4 Linux kernels"
|
bool "Support version 2.2/2.4 Linux kernels"
|
||||||
default n
|
default n
|
||||||
depends on INSMOD || RMMOD || LSMOD
|
depends on (INSMOD || RMMOD || LSMOD) && !MODPROBE_SMALL
|
||||||
select PLATFORM_LINUX
|
select PLATFORM_LINUX
|
||||||
help
|
help
|
||||||
Support module loading for 2.2.x and 2.4.x Linux kernels.
|
Support module loading for 2.2.x and 2.4.x Linux kernels.
|
||||||
@ -53,7 +53,7 @@ config FEATURE_2_4_MODULES
|
|||||||
config FEATURE_INSMOD_TRY_MMAP
|
config FEATURE_INSMOD_TRY_MMAP
|
||||||
bool "Try to load module from a mmap'ed area"
|
bool "Try to load module from a mmap'ed area"
|
||||||
default n
|
default n
|
||||||
depends on INSMOD || MODPROBE_SMALL
|
depends on INSMOD && !MODPROBE_SMALL
|
||||||
select PLATFORM_LINUX
|
select PLATFORM_LINUX
|
||||||
help
|
help
|
||||||
This option causes module loading code to try to mmap
|
This option causes module loading code to try to mmap
|
||||||
@ -135,7 +135,7 @@ config FEATURE_CHECK_TAINTED_MODULE
|
|||||||
config FEATURE_MODUTILS_ALIAS
|
config FEATURE_MODUTILS_ALIAS
|
||||||
bool "Support module.aliases file"
|
bool "Support module.aliases file"
|
||||||
default y
|
default y
|
||||||
depends on DEPMOD || MODPROBE
|
depends on (DEPMOD || MODPROBE) && !MODPROBE_SMALL
|
||||||
select PLATFORM_LINUX
|
select PLATFORM_LINUX
|
||||||
help
|
help
|
||||||
Generate and parse modules.alias containing aliases for bus
|
Generate and parse modules.alias containing aliases for bus
|
||||||
@ -152,7 +152,7 @@ config FEATURE_MODUTILS_ALIAS
|
|||||||
config FEATURE_MODUTILS_SYMBOLS
|
config FEATURE_MODUTILS_SYMBOLS
|
||||||
bool "Support module.symbols file"
|
bool "Support module.symbols file"
|
||||||
default y
|
default y
|
||||||
depends on DEPMOD || MODPROBE
|
depends on (DEPMOD || MODPROBE) && !MODPROBE_SMALL
|
||||||
select PLATFORM_LINUX
|
select PLATFORM_LINUX
|
||||||
help
|
help
|
||||||
Generate and parse modules.symbols containing aliases for
|
Generate and parse modules.symbols containing aliases for
|
||||||
|
Loading…
Reference in New Issue
Block a user