Linux – the difference between ‘make’ and ‘make oldconfig’

configurationlinux-kernelmake

With regard to this question: How to script make menuconfig, what is the difference between running make and make oldconfig?

I assume that if you run make, it uses the old .config anyway.

Best Answer

make oldconfig is used to apply your old .config file to the newer kernel.

For exapmle, you have .config file of your current kernel and you downloaded new kernel and want to build your new kernel. Since very likely new kernel will have some new configuration options, you will need to update your config. The easiest way to do this is to run make oldconfig, which will prompt you questions about the new configuration options. (that is the ones your current .config file doesn't have)