使用 Yocto 使用 meta-swupdate 构建图像时出现解析错误

Getting parse error when building an image with meta-swupdate using Yocto

我正在尝试设计一个 OTA 更新系统,并希望将 meta-swupdate 与 Yocto 一起使用,这是我所做的:

  1. bitbake-layers add-layer ../meta-openembedded/meta-oe/

  2. bitbake-layers add-layer ../meta-swupdate

  3. bitbake-layer showlayers

NOTE: Starting bitbake server...
layer                 path                                      priority
==========================================================================
meta                  /home/ut/repo/poky/meta                   5
meta-poky             /home/ut/repo/poky/meta-poky              5
meta-yocto-bsp        /home/ut/repo/poky/meta-yocto-bsp         5
meta-oe               /home/ut/repo/os-dev/yocto/meta-openembedded/meta-oe  6
meta-swupdate         /home/ut/repo/os-dev/yocto/meta-swupdate  6

conf/local.conf中:我设置MACHINE ?= "qemuarm64"

并构建:

bitbake swupdate-image

这是我得到的:

ERROR: ParseError at /home/ut/repo/os-dev/yocto/meta-swupdate/recipes-support/swupdate/swupdate.inc:10: unparsed line: 'LICENSE:${PN}-lua = "LGPLv2+"'                                     | ETA:  --:--:--

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

不要使用 https://github.com/sbabic/meta-swupdate

master 分支

使用与您的 poky 分支兼容的分支。 (dunfell, zeus, ...)

例如,在dunfell分支中固定为:

LICENSE_${PN}-lua = "LGPLv2+"
LICENSE_${PN}-www = "MIT"