天天看点

uboot编译错误记录

1. Error: You must add new CONFIG options using Kconfig

背景:同事新拉代码下来时,发现编译报错:

Error: You must add new CONFIG options using Kconfig

解决办法:在

u-boot/scripts/config_whitelist.txt

中增加新检测到的config。

疑惑:报错的CONFIG很久之前就存在了,检查发现我们本地的代码中

config_whitelist.txt

也没有该CONFIG,但编译都能跑通;而同事在config_whitelist.txt增加了COFNIG后也能编译过了,很奇怪,目前找不到原因。

参考资料

  1. Error: You must add new CONFIG options using Kconfig