[yocto] Problem & Question about FILES_${PN}

Nicolas Dechesne nicolas.dechesne at linaro.org
Mon Jan 6 16:29:07 PST 2014


On Tue, Jan 7, 2014 at 1:19 AM, Reeve Yang <reeve.yang at gmail.com> wrote:

> FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/*
> ${libdir}/lib*${SOLIBS} \
>     ${sysconfdir} ${sharedstatedir} ${localstatedir} \
>     ${base_bindir}/* ${base_sbindir}/* \
>     ${base_libdir}/*${SOLIBS} \
>     ${datadir}/${BPN} ${libdir}/${BPN}/*${SOLIBSDEV} \
>     ${datadir}/include/scl/ ${datadir}/xsd"
> FILES_${PN}-dev += "${libdir}/${BPN}/lib*.la
> ${libdir}/${BPN}/*${SOLIBSDEV}"
>

it seems that  ${libdir}/${BPN}/*${SOLIBSDEV} is both in FILES_{PN} and
FILES_{PN}-dev, in which case the actual files will be added in the -dev
package, not, the 'main binary' package.

Files are 'removed' from the local 'install' directory ($D) by processing
FILES_{PN} variables in the order defined by PACKAGES. since the -dev
package is before the binary package, your .so files will be added to the
-dev package first, and no longer in the local 'install' folder when the
binary package is being built.

so you need to remove the glob from FILES_{PN}-dev.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20140107/e3328081/attachment.html>


More information about the yocto mailing list