When a particular kernel config is turned on, e.g.
a bunch of other dependencies (
CONFIG_XXX_YYYY) get turned on during compilation. Is there a way to know all the dependencies for a given kernel CONFIG_ ?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Depends on section in
menuconfig is stored in
depends on sections.
config CRYPTO_FIPS bool "FIPS 200 compliance" depends on (CRYPTO_ANSI_CPRNG || CRYPTO_DRBG) && !CRYPTO_MANAGER_DISABLE_TESTS depends on MODULE_SIG help This options enables the fips boot option which is required if you want to system to operate in a FIPS 200 certification. You should say no unless you know what this is.
You can read the Kconfig files and search out the config.
If you're using the
ncurses based configuration (
make menuconfig) just search your particular kernel option (press
/ then type
CONFIG_CRYPTO_FIPS) and it's dependencies will also be listed in there. For instance in my 3.13 kernel tree I get:
Symbol: CRYPTO_FIPS [=n] Type : boolean Prompt: FIPS 200 compliance Location: (1) -> Cryptographic API (CRYPTO [=y]) Defined at crypto/Kconfig:24 Depends on: CRYPTO [=y] && CRYPTO_ANSI_CPRNG [=n] && !CRYPTO_MANAGER_DISABLE_TESTS [=y]