用于构建Angstrom的bitbake问题

时间:2014-11-21 20:20:38

标签: angstrom-linux openembedded bitbake yocto

我遇到的问题是我正在尝试使用bitbake从头开始构建一个Angstrom图像(因为Angstrom现在是Yocto兼容)但是我在运行bitbake systemd-image时遇到了错误

Traceback (most recent call last):
  File "/usr/bin/bitbake", line 234, in <module>
    ret = main()
  File "/usr/bin/bitbake", line 197, in main
    server = ProcessServer(server_channel, event_queue, configuration)
  File "/usr/lib/pymodules/python2.7/bb/server/process.py", line 78, in __init__
    self.cooker = BBCooker(configuration, self.register_idle_function)
  File "/usr/lib/pymodules/python2.7/bb/cooker.py", line 76, in __init__
    self.parseConfigurationFiles(self.configuration.file)
  File "/usr/lib/pymodules/python2.7/bb/cooker.py", line 510, in parseConfigurationFiles
    data = _parse(os.path.join("conf", "bitbake.conf"), data)
TypeError: getVar() takes exactly 3 arguments (2 given)
ERROR: Error evaluating '${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:build-${BUILD_OS}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}:forcevariable${@bb.utils.contains("TUNE_FEATURES", "thumb", ":thumb", "", d)}${@bb.utils.contains("TUNE_FEATURES", "no-thumb-interwork", ":thumb-interwork", "", d)}'
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 116, in expandWithRefs
    s = __expand_var_regexp__.sub(varparse.var_sub, s)
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 60, in var_sub
    var = self.d.getVar(key, 1)
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 260, in getVar
    return self.expand(value, var)
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 132, in expand
    return self.expandWithRefs(s, varname).value
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 117, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
TypeError: getVar() takes exactly 3 arguments (2 given)

ERROR: Error evaluating '${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[0] or 'defaultpkgname'}'
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 117, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 76, in python_sub
    value = utils.better_eval(codeobj, DataContext(self.d))
  File "/usr/lib/pymodules/python2.7/bb/utils.py", line 387, in better_eval
    return eval(source, _context, locals)
  File "PN", line 1, in <module>
TypeError: getVar() takes exactly 3 arguments (2 given)

我已经在这一段时间了,在不同的网站上搜索。最初我尝试按照Angstrom网站开发者部分的指南进行操作,但是一旦我遇到一些错误(在此之前我就放在这里),我找到了Derek Molloy的网站http://derekmolloy.ie/building-angstrom-for-beaglebone-from-source/,它解决了这些错误并给了一个更多细节到这个过程。

最终我偶然发现了另一个论坛帖子,该帖子描述了我的问题,但不幸的是答案并不是很清楚(对我来说无论如何)http://comments.gmane.org/gmane.linux.distributions.angstrom.devel/7431。我对可能出错的东西感到茫然,而且我对Yocto项目几乎是新手,所以我不确定是否有任何步骤缺失或隐含的东西我忽略了,所以我会非常感谢任何可以指出的人我正朝着正确的方向前进。

作为旁注,我一直在想它可能与我所拥有的环境 - angstrom -...文件有关,因为我的环境是-engstrom-v2013.12,所有其他示例都使用以前的版本,我想知道在使用它时是否有新的步骤。

2 个答案:

答案 0 :(得分:1)

您是否有理由使用系统范围的bitbake而不是与该版本的Angstrom兼容的bitbake?

答案 1 :(得分:0)

不要使用系统范围的bitbake,因为bitbake API可以并且确实会随着时间而改变。使用相应的bitbake来发布angstrom。

(这是破坏因为你的bitbake需要getVar接受三个参数,但你的埃层只传递两个参数)