如何将相同的文件包含到两个不同的软件包中 – Yocto

huangapple go评论52阅读模式
英文:

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"

huangapple
  • 本文由 发表于 2020年7月29日 03:11:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/63141223.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定