linux 默认系统内核,Linux Kernel内核配置方式详解

在做Virtualization这段时间,编译过多次Linux kernel,编译Kernel过程中配置config这一步是相对来说比较复杂的。对编译内核过程中的配置这一步做详细的说明吧,总结一下,多数内容源于网上的多篇文章。

首先,配置时可能出现的选项,对其选择先来个说明吧。

Typically, your choices for each option are shown in the

format [Y/m/n/?] The capitalizedletter is the default, and can be selected by just pressing the Enter

key. The four choices are:

yBuild directly into the kernel.

nLeave entirely out of the kernel.

mBuild as a module, to be loaded if needed.

?Print a brief descriptive message and

repeat the prompt.

y表示

是(相应功能将直接编译进内核),m表示

模块(相应功能将编译为一个模块,在需要时加载),以及

n表示

否(相应功能不会包含进内核)。?则(对该配置项)打印出简要的描述信息并重复刚才的选择提示。

其次,我使用的最多的两个配置命令分别是:make muneconfig和make oldconfig

make oldconfig和make

config类似,但是它的作用是在现有的内核设置文件基础上建立一个新的设置文件,只会向用户提供有关新内核特

你可能感兴趣的:(linux,默认系统内核)