kconfig: Add `make mod2noconfig` to disable module options
authorJosh Triplett <josh@joshtriplett.org>
Sun, 17 Oct 2021 17:43:13 +0000 (19:43 +0200)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 2 Dec 2021 08:02:36 +0000 (17:02 +0900)
commitc39afe624853e39af243dd9832640bf9c80b6554
tree1677226346ce6fd69a70c7c6caefe7f0ad23afd7
parentd58071a8a76d779eedab38033ae4c821c30295a5
kconfig: Add `make mod2noconfig` to disable module options

When converting a modular kernel to a monolithic kernel, once the kernel
works without loading any modules, this helps to quickly disable all the
modules before turning off module support entirely.

Refactor conf_rewrite_mod_or_yes to a more general
conf_rewrite_tristates that accepts an old and new state.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Tested-by: Björn Töpel <bjorn@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/Makefile
scripts/kconfig/conf.c