哪里有bitbake python函数记录

ELO*_*ELO 12 bitbake yocto

我正在尝试查找"bb.utils.contains"的文档.我在pokey/bitbake/lib/utils.py中找到了代码,但该代码记录很少.例如,它采用名为"d"的参数.什么是"d"?你怎么开始使用像这样的简短的非描述性名称?

我已经下载并搜索了所有yocto和poky文档,并进行了大量的网络搜索,但无济于事.

有没有人知道对内置的bitbake python实用程序的一个很好的参考?

Fl0*_*0v0 8

我能找到的最好的文档是代码本身的文档字符串.请看:https://github.com/openembedded/bitbake/blob/master/lib/bb/utils.py#L971

def contains(variable, checkvalues, truevalue, falsevalue, d):
    """Check if a variable contains all the values specified.
      Arguments:
        variable -- the variable name. This will be fetched and expanded (using
          d.getVar(variable, True)) and then split into a set().
        checkvalues -- if this is a string it is split on whitespace into a set(),
          otherwise coerced directly into a set().
        truevalue -- the value to return if checkvalues is a subset of variable.
        falsevalue -- the value to return if variable is empty or if checkvalues is
          not a subset of variable.
        d -- the data store.
    """
Run Code Online (Sandbox Code Playgroud)


Bra*_*rad 3

“d”是从环境和配方中提取的所有值的当前字典。请参阅 data.py 和 data_smart.py。

我同意 bitbake 文档并不总是完整的,但有一个 bitbake-dev 邮件列表也可以提供帮助。