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?
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"