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服務的。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM