我阅读了手册,但仍然无法理解FILES_${PN}
的含义。例如,我正在处理这个示例中制作启动脚本的问题。当我写了类似以下内容后,出现了以下错误信息。
ERROR: initscriptd-1.0-r0 do_package: QA Issue: initscriptd: Files/directories were installed but not shipped in any package:
/usr
/usr/sbin
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
initscriptd: 2 installed and not shipped files. [installed-vs-shipped]
ERROR: initscriptd-1.0-r0 do_package: Fatal QA errors found, failing task.
ERROR: initscriptd-1.0-r0 do_package: Function failed: do_package
ERROR: Logfile of failure stored in: /home/yahia/Desktop/elinux_dev/bake_factory/poky-pyro-17.0.1/build/tmp/work/core2-64-poky-linux/initscriptd/1.0-r0/temp/log.do_package.5252
ERROR: Task (/home/yahia/Desktop/elinux_dev/bake_factory/poky-pyro-17.0.1/meta-mylayer/recipes-core/mylayer-initscript/initscriptd.bb:do_package) failed with exit code '1'
根据我的理解,我提供的配方文件并没有被打包在某个特定的软件包中,所以Yocto不知道该在哪里解压它们,我的理解正确吗?
因此,我添加了FILES_${PN} += "带有所有目录路径"
,这样我安装配方文件时就可以正常工作。
那么,请问我为什么需要这样做?何时需要?如果提供一个相关的例子将会更加有帮助。