make 中的config详述

来源:互联网 发布:监控矩阵 编辑:程序博客网 时间:2024/04/28 19:24

help:
 @echo  '  config   - Update current config utilising a line-oriented program'
 @echo  '  menuconfig   - Update current config utilising a menu based program'
 @echo  '  xconfig   - Update current config utilising a QT based front-end'
 @echo  '  gconfig   - Update current config utilising a GTK based front-end'
 @echo  '  oldconfig   - Update current config utilising a provided .config as base'
 @echo  '  silentoldconfig - Same as oldconfig, but quietly'
 @echo  '  randconfig   - New config with random answer to all options'
 @echo  '  defconfig   - New config with default answer to all options'
 @echo  '  allmodconfig   - New config selecting modules when possible'
 @echo  '  allyesconfig   - New config where all options are accepted with yes'
 @echo  '  allnoconfig   - New config where all options are answered with no'

 

 1. 如果.config不存在,运行make config/menuconfig时的缺省设置由固化在各个Kconfig文件中各项目的缺省值决定。
2. 如果.config存在,运行make config/menuconfig时的缺省设置即是当前.config的设置,若对设置进行了修改,.config将被更新。
3. 每一个体系结构下面都有相关的配置文件,比如说在x86体系结构下面有。arch/x86/configs文件夹中有许多命名为xxx_defconfig的配置文件,如果运行make xxx_defconfig,当前.config文件会由xxx_defconfig文件生成。
4. make oldconfig的作用是备份当前.config文件为.config.old,如若make config/menuconfig设置不当可用于恢复先前的.config。

原创粉丝点击