Scenario Description: After the kernel compiles, the module is installed into the/lib/module, is it necessary to depmod all for module dependency detection to generate MODULE.DEP files?
Question 1: where is the block installed? If you don't use this kernel, is it possible to unload this kernel-compiled module?
< Span style= "Font-family:song, Verdana;font-size:14px;line-height:22.390625px;background-color:rgb (255,255,255);" > Delete the directory directly
Make Modules is a compilation module, a lot of drivers and functions are selected when the choice of M is modules, but direct make, without any parameters, is made all, including make modules. You don't need to add this make, but when you install it, make install installs only bzimage,systemmap. Did not install the modules, but also the additional make Modules_install, put the module into the/lib/modules folder in the same folder as the kernel name, and run the Depmod generate the module dependency file, The module that is loaded when the system starts is to read the information loading module from DEP.
Question 2:linux The difference between kernel--make mrproper and make clean
First, both commands are used to delete the associated files that are generated when the kernel is compiled.
The difference between the two is as follows:
The Make Mrproper command deletes all compiled build files, kernel configuration files (. config files), and various backup files, so this command is used almost only before the first kernel compilation is performed.
The Make clean command is used to delete most compiled build files, but it retains the kernel's configuration file. config, and enough compilation support to build the extension module. So if you just want to delete the residual data from the previous compilation process, simply execute the make clean command.
All in all, make Mrproper removes a larger range than make, in fact, the first step of make Mrproper is to call make clean when it executes.
A list of lists is provided here: http://blog.csdn.net/gchww/article/details/7382329
Depmod after kernel compilation