什么是 config_whitelist.txt 文件,它在 u-boot 中如何使用?

What is config_whitelist.txt file and how is it used in u-boot?

在 u-boot 源代码中,我看到 scripts/config_whitelist.txt 有很多 CONFIG_XXX 值。
文件是什么,如何使用?

自此提交:

commit 371244cb19f9804711dd66e4281ff7979915fd2e
Author: Simon Glass <sjg@chromium.org>
Date:   Tue Sep 13 21:44:07 2016 -0600

Makefile: Give a build error if ad-hoc CONFIG options are added

如果在某些包含文件中启用了某些 CONFIG_XXX 选项(应改用 Kconfig 机制),脚本 scripts/check-config.sh 将在 u-boot 构建期间触发错误。
文件 scripts/config_whitelist.txt 建立了该规则的例外列表。