side-effect when enabling CONFIG_MODULES

From: Arend Van Spriel
Date: Mon Jul 18 2016 - 06:44:56 EST

A question for whoever can provide the answer. I have a kernel defconfig
with everything built-in. However, I want to compile a driver module
against it for testing. So I enabled CONFING_MODULES, but as a
side-effect several implicitly selected config options changed from
CONFIG_FOO=y to CONFIG_FOO=m giving me slightly different kernel at
least when looking at the vmlinux. So I just did sed -i 's/=m/=y/'
.config, but I was wondering if that step can be avoided somehow?