Yocto/bitbake-安装了文件/目录,但未在任何软件包中发货
我正在学习Yocto,在创建自定义服务时我有问题。
这是我的食谱结构:
和.bb文件:
SUMMARY = "Analyzer service"
LICENSE = "CLOSED"
PR = "r0"
inherit cmake pkgconfig systemd
FILESPATH =+ "${THISDIR}:"
SRC_URI = "\
file://${PN}"
S = "${WORKDIR}/${PN}"
DEPENDS = "glib-2.0 dlt-daemon"
FILES_${PN} += "${systemd_system_unitdir}/*"
SYSTEMD_SERVICE_${PN} = "AnalyzerService.service"
我尝试搜索许多类似的问题并修改文件_ $ {pn},但仍然不起作用。
ERROR: analyzer-service-1.0.0-r0 do_package: QA Issue: analyzer-service:
Files/directories were installed but not shipped in any package:
/lib
/lib/systemd
/lib/systemd/system
/lib/systemd/system/AnalyzerService.service
Please set FILES such that these items are packaged. Alternatively if
they are unneeded, avoid installing them or delete them within
do_install.
analyzer-service: 4 installed and not shipped files. [installed-vs-
shipped]
ERROR: analyzer-service-1.0.0-r0 do_package: Fatal QA errors were found,
failing task.
谁能告诉我我要去哪里? 我将感谢您提供的任何帮助^^
I'm learning Yocto and I've a problem when creating a custom service.
Here is my recipe structure:
And the .bb file:
SUMMARY = "Analyzer service"
LICENSE = "CLOSED"
PR = "r0"
inherit cmake pkgconfig systemd
FILESPATH =+ "${THISDIR}:"
SRC_URI = "\
file://${PN}"
S = "${WORKDIR}/${PN}"
DEPENDS = "glib-2.0 dlt-daemon"
FILES_${PN} += "${systemd_system_unitdir}/*"
SYSTEMD_SERVICE_${PN} = "AnalyzerService.service"
I've tried to search many similar questions and modify the FILES_${PN} but it still doesn't work.
ERROR: analyzer-service-1.0.0-r0 do_package: QA Issue: analyzer-service:
Files/directories were installed but not shipped in any package:
/lib
/lib/systemd
/lib/systemd/system
/lib/systemd/system/AnalyzerService.service
Please set FILES such that these items are packaged. Alternatively if
they are unneeded, avoid installing them or delete them within
do_install.
analyzer-service: 4 installed and not shipped files. [installed-vs-
shipped]
ERROR: analyzer-service-1.0.0-r0 do_package: Fatal QA errors were found,
failing task.
Can anyone tell me where I am going wrong?
I will be grateful for any help you can provide ^^
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是哪个版本?覆盖语法在最新版本中更改,因此将是文件:$ {pn},而不是文件_ $ {pn}和systemd_service:$ {pn}
Which version is this with? The override syntax changed in more recent versions so it would be FILES:${PN} instead of FILES_${PN} and SYSTEMD_SERVICE:${PN}