Yocto/bitbake-安装了文件/目录,但未在任何软件包中发货

发布于 2025-02-04 07:23:04 字数 1227 浏览 4 评论 0原文

我正在学习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:

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦断已成空 2025-02-11 07:23:04

这是哪个版本?覆盖语法在最新版本中更改,因此将是文件:$ {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}

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文