在构建树外内核模块时,有没有办法可以传送更多文件?
我尝试过这样的事情:
FILES_${PN} += "${bindir}/my_program"
do_install_append() {
install -d ${D}${bindir}
install -m 0755 ${D}/my_program ${D}${bindir}/my_program
}
像这样:
FILES_kernel-module-${PN} += "${bindir}/my_program"
do_install_append() {
install -d ${D}${bindir}
install -m 0755 ${D}/my_program ${D}${bindir}/my_program
}
但还是抱怨:
ERROR: QA Issue: my-module: Files/directories were installed but not shipped in any package:
/usr
/usr/bin
/usr/bin/my_program
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
my-module: 3 installed and not shipped files. [installed-vs-shipped]
这是很常见的情况 - 您已经安装了额外的二进制文件,但尚未将其添加到输出包中(已安装但未发货).
解决方案应基于您需要添加到输出图像的文件类型。
检查这个线程:错误:QA 问题:文件/目录已安装但未发货的 2 步解决方案 https://lists.yoctoproject.org/pipermail/yocto/2016-January/028127.html
另外,如果您需要快速验证文件是否正确构建等,您可以在 build/local.conf 中添加此行(因为您已经安装了它们):
IMAGE_INSTALL +=“{binary_name}”
Edit:
除了OP的以下评论之外:
抱歉我的误解,看来你需要继承模块.bbclass在你的食谱中,查看文档:Yocto Mega 手册 - module.bbclass http://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#ref-classes-module让我知道这是否适合您。
您还可以查看这个简单的教程:如何从内核树构建内核模块 http://wiki.kaeilos.com/index.php/Howto_build_a_kernel_module_out_of_the_kernel_tree
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)