如何在内核编译中将所有功能编译为模块?

How to make all features compile to modules in kernel compilation?

当我使用 make menuconfig 时,我看到了很多可选模块,我可以选择(使用 'M')将其编译为一个模块。我想要的是将所有可以编译为模块的功能编译为模块,但我不想在 menuconfig window 中手动 select。谁能给我一些建议?剂量 'make modules' 有意义吗?

您正在寻找

make allmodconfig

来自 make -f Makefile help 状态:新配置尽可能选择模块

此选项尽可能将配置设置为 "M"。