英文:
How to include the same file into two different packages - Yocto
问题
I have a yocto recipe that builds, a Java .jar file, and it's needed to be included at the target and development packages, I already tried to explicitly the files, but yocto doesn't create two packages with the same content. I'm trying this:
FILES_${PN} = "${libdir}/libfoo.jar"
FILES_${PN}-dev = "${libdir}/libfoo.jar"
But the dev package still empty.
如何将此文件添加到这两个包中?
英文:
I have a yocto recipe that builds, a Java .jar file, and it's needed to be included at the target and development packages, I already tried to explicity the files, but yocto doesn't create two packages with the same content. I'm trying this:
FILES_${PN} = "${libdir}/libfoo.jar"
FILES_${PN}-dev = "${libdir}/libfoo.jar"
But the dev package still empty.
How can I add this file to theese 2 packages?
答案1
得分: 2
如果您创建一个基本包并使您的两个包依赖于它呢?
PACKAGES = "${PN}-dbg ${PN}-base ${PN} ${PN}-dev"; RDEPENDS_${PN} += "${PN}-base"; RDEPENDS_${PN}-dev += "${PN}-base";
英文:
What if you create a base package and make your two packages depend on it?
PACKAGES = "${PN}-dbg ${PN}-base ${PN} ${PN}-dev"
RDEPENDS_${PN} += "${PN}-base"
RDEPENDS_${PN}-dev += "${PN}-base"
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论