To build the linux kernel from source, I would normally do something like:
make mrproper
make menuconfig
make
In the menuconfig step, I enable some modules I want to have built into the kernel that aren't part of the default config file (defconfig).
Now suppose I know in advance what modules I want to enable in menuconfig, but want to automate the build process from a script (i.e. non-interactively). I don't want to edit the .config file manually before issuing make as I may not correctly resolve the dependencies of the modules I want to install.
Is there some way of replacing the menuconfig step with something like
make updateconfig module_name
?
PS I don't want to do menuconfig the first time and then save the updated .config as a new default config.
make olddefconfig
each time you want to update the kernel. And why you don't want to go this direction? – 0andriytiny.config
and adjustscripts/kconfig/Makefile
to support it in the same way. In this case you will never have a conflicts if your "third-party" defconfig file has been changed. – 0andriy