[英]Issues with bitbake for building Angstrom
我遇到的問題是我正在嘗試使用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項目非常陌生,因此我不確定是否遺漏了任何步驟或我忽略了一些隱含的內容,因此我深表感謝任何可以指出的人我在正確的方向上。
作為旁注,我一直認為這可能與我所擁有的environment-angstrom -...文件有關,因為我的文件是environment-angstrom-v2013.12,所有其他示例都使用以前的版本,我想知道在進行此操作時是否涉及新的步驟。
為什么要使用系統范圍的Bitbake,而不是與Angstrom版本兼容的原因?
不要使用系統范圍內的Bitbake,因為bitbake API可以並且確實會隨着時間而變化。 使用相應的bitbake釋放該埃。
(這很麻煩,因為您的位烘烤要求getVar接受三個參數,但您的埃斯特層僅傳遞兩個參數)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.