kernel/uboot关于defconfig的几个问题?

一,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服务的。

 

猜你喜欢

转载自www.cnblogs.com/llc-blog/p/10164024.html