Bitbake версии 1.43.0 не работает как демонстрационная версия helloworld, которую демонстрирует руководство пользователя bitbake.
Я вернулся к битовой версии 1.23.0, и она работала нормально.Тем не менее, я не могу заставить его работать на последней версии....
base.bbclass
`addtask build'
.bblayer.conf
BBLAYERS ?= " \
/home/bubba/mylayer/ \
"
bitbake.conf
TMPDIR = "${TOPDIR}/tmp"
CACHE = "${TMPDIR}/cache"
STAMP = "${TMPDIR}/stamps"
T = "${TMPDIR}/work"
B = "${TMPDIR}"
printhello.bb Он находится в другом каталоге под названием mylayer
DESCRIPTION = "Prints Hello World"
PN = 'printhello'
PV = '1'
python do_build() {
bb.plain("********************");
bb.plain("* *");
bb.plain("* Hello, World! *");
bb.plain("* *");
bb.plain("********************");
}
layer.conf это живет в каталоге mylayer / conf
BBPATH .= ":${LAYERDIR}"
BBFILES += "${LAYERDIR}/*.bb"
BBFILE_COLLECTIONS += "mylayer"
BBFILE_PATTERN_mylayer := "^${LAYERDIR_RE}/"
Ошибки, напечатанные после того, как я выполню bitbake printhello
bubba@bubbaMini:~/hello$ bitbake printhello
WARNING: Layer mylayer should set LAYERSERIES_COMPAT_mylayer in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer mylayer should set LAYERSERIES_COMPAT_mylayer in its conf/layer.conf file to list the core layer names it is compatible with.
Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:00
Parsing of 1 .bb files complete (0 cached, 1 parsed). 1 targets, 0 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: An uncaught exception occurred in runqueue################################################ | ETA: 0:00:00
Traceback (most recent call last):
File "/home/bubba/bitbake/lib/bb/runqueue.py", line 1500, in RunQueue.execute_runqueue():
try:
> return self._execute_runqueue()
except bb.runqueue.TaskFailure:
File "/home/bubba/bitbake/lib/bb/runqueue.py", line 1420, in RunQueue._execute_runqueue():
[43, 967, 4, 3, 1, 5, 3, 7, 13, 1, 2, 1, 1, 246, 35, 1, 38, 1, 35, 2, 338, 204, 142, 3, 3, 37, 244])
> if self.rqdata.prepare() == 0:
self.state = runQueueComplete
File "/home/bubba/bitbake/lib/bb/runqueue.py", line 1156, in RunQueueData.prepare():
todeal.remove(tid)
> self.prepare_task_hash(tid)
File "/home/bubba/bitbake/lib/bb/runqueue.py", line 1169, in RunQueueData.prepare_task_hash(tid='/home/bubba/mylayer/printhello.bb:do_build'):
self.runtaskentries[tid].hash = bb.parse.siggen.get_taskhash(taskfn, taskname, procdep, self.dataCaches[mc])
> self.runtaskentries[tid].unihash = bb.parse.siggen.get_unihash(taskfn + "." + taskname)
File "/home/bubba/bitbake/lib/bb/siggen.py", line 49, in SignatureGenerator.get_unihash(task='/home/bubba/mylayer/printhello.bb.do_build'):
def get_unihash(self, task):
> return self.taskhash[task]
KeyError: '/home/bubba/mylayer/printhello.bb.do_build'
ERROR: Running idle function
Traceback (most recent call last):
File "/home/bubba/bitbake/lib/bb/runqueue.py", line 1500, in RunQueue.execute_runqueue():
try:
> return self._execute_runqueue()
except bb.runqueue.TaskFailure:
File "/home/bubba/bitbake/lib/bb/runqueue.py", line 1420, in RunQueue._execute_runqueue():
[43, 967, 4, 3, 1, 5, 3, 7, 13, 1, 2, 1, 1, 246, 35, 1, 38, 1, 35, 2, 338, 204, 142, 3, 3, 37, 244])
> if self.rqdata.prepare() == 0:
self.state = runQueueComplete
File "/home/bubba/bitbake/lib/bb/runqueue.py", line 1156, in RunQueueData.prepare():
todeal.remove(tid)
> self.prepare_task_hash(tid)
File "/home/bubba/bitbake/lib/bb/runqueue.py", line 1169, in RunQueueData.prepare_task_hash(tid='/home/bubba/mylayer/printhello.bb:do_build'):
self.runtaskentries[tid].hash = bb.parse.siggen.get_taskhash(taskfn, taskname, procdep, self.dataCaches[mc])
> self.runtaskentries[tid].unihash = bb.parse.siggen.get_unihash(taskfn + "." + taskname)
File "/home/bubba/bitbake/lib/bb/siggen.py", line 49, in SignatureGenerator.get_unihash(task='/home/bubba/mylayer/printhello.bb.do_build'):
def get_unihash(self, task):
> return self.taskhash[task]
KeyError: '/home/bubba/mylayer/printhello.bb.do_build'
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
....
Я не уверен, почему происходит сбой в одной версии, а не в другой.Если кто-нибудь может объяснить, что я делаю неправильно или какой шаг я пропускаю.