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後也能編譯過了,很奇怪,目前找不到原因。
參考資料
- Error: You must add new CONFIG options using Kconfig