kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT
"make allnoconfig" exists to ease testing of minimal configurations. Documentation/SubmitChecklist includes a note to test with allnoconfig. This helps catch missing dependencies on common-but-not-required functionality, which might otherwise go unnoticed. However, allnoconfig still leaves many symbols enabled, because they're hidden behind CONFIG_EMBEDDED or CONFIG_EXPERT. For instance, allnoconfig still has CONFIG_PRINTK and CONFIG_BLOCK enabled, so drivers don't typically get build-tested with those disabled. To address this, introduce a new Kconfig option "allnoconfig_y", used on symbols which only exist to hide other symbols. Set it on CONFIG_EMBEDDED (which then selects CONFIG_EXPERT). allnoconfig will then disable all the symbols hidden behind those. Signed-off-by:Josh Triplett <josh@joshtriplett.org> Tested-by:
Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Michal Marek <mmarek@suse.cz> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- Documentation/kbuild/kconfig-language.txt 4 additions, 0 deletionsDocumentation/kbuild/kconfig-language.txt
- init/Kconfig 1 addition, 0 deletionsinit/Kconfig
- scripts/kconfig/confdata.c 4 additions, 1 deletionscripts/kconfig/confdata.c
- scripts/kconfig/expr.h 3 additions, 0 deletionsscripts/kconfig/expr.h
- scripts/kconfig/lkc.h 1 addition, 0 deletionsscripts/kconfig/lkc.h
- scripts/kconfig/menu.c 3 additions, 0 deletionsscripts/kconfig/menu.c
- scripts/kconfig/zconf.gperf 1 addition, 0 deletionsscripts/kconfig/zconf.gperf
- scripts/kconfig/zconf.hash.c_shipped 8 additions, 5 deletionsscripts/kconfig/zconf.hash.c_shipped
Please register or sign in to comment