Bitbake QA 需要删除 {bindir}

Bitbake QA requires deletion of {bindir}

我有一个相对简单的收据文件(ntp 的精简版),没有安装 {bindir}。但是,除非我明确删除 do_install_append 中的 {bindir},否则我会收到 QA 错误消息:

ERROR: ntp-4.2.8p9-r0 do_package: QA Issue: ntp: Files/directories were installed but not shipped in any package:
/usr/bin
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.

ntp: 1 个已安装但未发布的文件。 [已安装与已发货] 错误:ntp-4.2.8p9-r0 do_package:发现致命的 QA 错误,任务失败。

为什么这个食谱中需要删除?是否有其他一些正在安装的配方 {bindir}?

https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/base.bbclass 提供了一些默认值 do_install。如果你只想安装你想要的。请覆盖 do_install() 而不是 do_install_append()。否则您需要添加所有文件 FILES_${PN}。