一,defconfig與.config是什么關系?
.config不是defconfig的拷貝,defconfig僅僅保存與默認配置不同的選項。配置階段綜合KCONFIG文件與defconfig,有沖突時以defconfig為准。
二,defconfig中的#CONFIG_XXX is not set有具體含義嗎?
defconfig中的語法:
CONFIG_<optionName>=y
CONFIG_<optionName>=m CONFIG_<optionName>=n --- 表示 CONFIG_<optionName>為no,但是這種用法很少,一般都使用 is not set # CONFIG_<optionName> is not set --- 表示 CONFIG_<optionName>為no
三,保存defconfig的方法?
make savedefconfig
四,其它命令?
see changes from one .config to another one:
$ scripts/diffconfig .config_old .config_new
五,include/generated/autoconf.h
配置完成后(無論是defconfig還是menuconfig),會生成autoconf.h,供C文件包含,以判斷某個CONFIG是否支持。
.config是為Makefile服務的。
