kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT
authorJosh Triplett <josh@joshtriplett.org>
Mon, 7 Apr 2014 22:39:09 +0000 (15:39 -0700)
committerChristian Lamparter <chunkeey@googlemail.com>
Thu, 1 Jan 2015 16:47:22 +0000 (17:47 +0100)
commit5c9d83b150e2228368b45734e47285957cf15092
treec0d7e92d398564163fafef985bd733349ec11d5f
parent786812b3a629e8b8b42c176df9a4d243218de179
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>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
config/confdata.c
config/expr.h
config/lkc.h
config/menu.c
config/zconf.gperf