Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "make oldconfig" do exactly in the Linux kernel makefile?

Can anyone explain what the target "oldconfig" does exactly in the Linux kernel makefile? I see it referenced in some build documentation but never explained what it does exactly.

like image 208
fred basset Avatar asked Nov 14 '10 16:11

fred basset


People also ask

What make Oldconfig does?

make oldconfig takes the current kernel configuration in the . config file, and updates it based on the new kernel release. To do this, it prints out all configuration questions, and provides an answer for them if the option is already handled in the configuration file.

What is Makefile in Linux kernel?

The top Makefile is responsible for building two major products: vmlinux (the resident kernel image) and modules (any module files). It builds these goals by recursively descending into the subdirectories of the kernel source tree. The list of subdirectories which are visited depends upon the kernel configuration.

What is make Mrproper?

Running make mrproper or make distclean returns the kernel source tree to its unconfigured state. This means you loose your . config file. You will need to create a new . config file before compiling the kernel.

What is make Localmodconfig?

"make localmodconfig" Create a config based on current config and loaded modules (lsmod). Disables any module option that is not needed for the loaded modules. To create a localmodconfig for another machine, store the lsmod of that machine into a file and pass it in as a LSMOD parameter.


1 Answers

It reads the existing .config file that was used for an old kernel and prompts the user for options in the current kernel source that are not found in the file. This is useful when taking an existing configuration and moving it to a new kernel.

like image 84
Ignacio Vazquez-Abrams Avatar answered Oct 27 '22 02:10

Ignacio Vazquez-Abrams