【问题标题】:What is config_whitelist.txt file and how is it used in u-boot?什么是 config_whitelist.txt 文件,它是如何在 u-boot 中使用的?
【发布时间】:2022-01-16 14:58:28
【问题描述】:

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

【问题讨论】:

    标签: u-boot


    【解决方案1】:

    自从这次提交:

    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 选项,脚本scripts/check-config.sh 将在 u-boot 构建期间触发错误(应使用 Kconfig 机制)。
    文件scripts/config_whitelist.txt 建立了该规则的例外列表。

    【讨论】:

      猜你喜欢
      • 2010-11-23
      • 2016-08-30
      • 2010-11-08
      • 1970-01-01
      • 2013-04-19
      • 2020-10-03
      • 1970-01-01
      • 1970-01-01
      • 2020-04-27
      相关资源
      最近更新 更多