我正在学习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"我试图搜索许多类似的问题并修改FILES_${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.有人能告诉我哪里出了问题吗?如果你能提供^^,我将非常感激。
发布于 2022-06-04 21:02:59
这是哪个版本的?覆盖语法在最近的版本中改变了,因此它将是文件:${PN}而不是FILES_${PN}和SYSTEMD_SERVICE:${PN}
https://stackoverflow.com/questions/72498946
复制相似问题