I want to build phylink support (CONFIG_PHYLINK) as a module. In my config, some reverse dependencies of CONFIG_PHYLINK are configured as builtin (=y). Is there some tool that helps to switch all reverse dependencies to be build as a module, so CONFIG_PHYLINK can be set to =m?
1 Answer 1
make menuconfig or make nconfig are designed to do this for you - personally I find the latter nicer and may do what you're after by first enabling "all entries" F4 before searching with F8
I don't immediately have an instance to see if there's a flip-tree, but you can at least find the dependency graph this way
With the keys you could flip them manually or do something ugly like this (lightly tested) to flip a collection of CONFIG_ keys outside the tool, but beware not all keys support m and I generally don't suggest doing this and instead giving each full name explicitly if you're producing your own script!
cp .config config.bak$(date --iso-8601=s)
cat <<EOF | xargs -I{} sed -iE "s/^\(CONFIG_{}=\)./1円m/" .config
put
your
keys
here
EOF
make menuconfig(which is the "some tool" you seek)?merge_confighelps?