Buildroot 否定标记

问题描述

我不明白在评论后用否定重新定义 BR2_USE_WCHAR 的目的。

config BR2_PACKAGE_RRDTOOL
        bool "rrdtool"
        depends on **BR2_USE_WCHAR**
        select BR2_PACKAGE_FREETYPE
        select BR2_PACKAGE_LIBART
        select BR2_PACKAGE_LIBPNG
        select BR2_PACKAGE_ZLIB
        help
          RRDtool is the OpenSource industry standard,high performance
          data logging and graphing system for time series data.

          http://oss.oetiker.ch/rrdtool/

comment "rrdtool needs a toolchain w/ wchar"
        depends on **!BR2_USE_WCHAR**

解决方法

C:\Windows\system32>pip install wfastcgi Collecting wfastcgi Using cached wfastcgi-3.0.0.tar.gz (14 kB) Using legacy 'setup.py install' for wfastcgi,since package 'wheel' is not installed. Installing collected packages: wfastcgi Running setup.py install for wfastcgi ... done Successfully installed wfastcgi-3.0.0 C:\Windows\system32>wfastcgi-enable failed to create process. 条目取决于 BR2_PACKAGE_RRDTOOL,因此只有在定义了 BR2_USE_WCHAR 时才可见。

评论取决于 BR2_USE_WCHAR,因此如果 !BR2_USE_WCHAR定义,则会显示。

换句话说:

  • BR2_USE_WCHAR 定义:BR2_USE_WCHAR 条目可见,评论隐藏
  • BR2_PACKAGE_RRDTOOL 未定义:BR2_USE_WCHAR 条目隐藏,评论可见