在"Linux 内核学习(2)——内核配置与编译"中,我们提到了内核配置,但是对于那么多的配置选项,真是云里雾里,所以我们通过本文进行梳理,通过make xconfig的图形界面,我们可以看到主要的配置选项有:
下面我们就对各个选项进行简单介绍:
- General setup(通用设置):Local version - append to kernel release(在内核版本后加上自定义版本字符串), Automatically append version information to the version string(自动在版本字符串后添加版本信息),Kernel compression mode(内核压缩模式,如gzip,bzip2,LZMA,XZ,LZO等,默认选择gzip),Default hostname(默认主机名,默认为none),Support for paging of anonymous memory (swap) (允许使用交换分组做为虚拟内存),System V IPC(对System V 进程间通信的支持,通常必选),POSIX Message Queues(POSIX消息队列,IPC的一部分),Auditing support(审计支持,某些内核模块与SELinux需要它),IRQ subsystem,Timers subsystem,CPU/Task time and stats accounting,Control Group support,Namespaces support,Configure standard kernel features (expert users) ,Kernel Performance Events And Counters,GCOV-based kernel profiling,Enable loadable module support (模块支持,这对不常用的用户选项比较有用,因为这样可以不必将其在boot的时候加载)。
- Enable the block layer(使能块设备层):主要包括对MBR分区类型以及IO调度器的一些选项
- Processor type and features(CPU类型和特性):包括对对称多处理器的支持,处理器的子架构,处理器家族,最大支持的CPU数目,内核抢占模式等的选项
- Power management and ACPI options(电源管理及ACPI选项):
- Bus options (PCI etc.)(总线选项):包括对PCI的支持等
- Executable file formats / Emulations(可执行文件格式/枚举):
- Networking support (网络支持):
- Device Drivers(设备驱动):
- Firmware Drivers(固件驱动):
- File systems(文件系统):
- Kernel hacking(内核Hack选项):
- Security options(安全选项):
- Cryptographic API(加密API):
- Virtualization(虚拟化):
- Library routines(库函数):