[yocto] Problem with populate_sdk

Andrea Adami andrea.adami at gmail.com
Sun Oct 22 16:11:47 PDT 2017


On Thu, Oct 19, 2017 at 8:26 PM, Greg Wilson-Lindberg
<GWilson at sakuraus.com> wrote:
> I'm trying to build an SDK for a Raspberry Pi3, and I got a problem with the
> files from one of my custom recipes.
>
>
> In my recipe I have:
>
> FILES_${PN}-dev = "lib/lib${PN}.a lib/lib${PN}_unix.a lib/pkgconfig
> include/canfestival/*.h"
>
>
> The *.a files get put into staticdev not dev in the package split.
>
>
> In my image recipe I've added:
>
> IMAGE_FEATURES += "dev-pkgs  staticdev-pkgs"
>
> I get all of the libraries in my image. In the SDK I don't get the *.a
> libraries from the staticdev, I do get the header files which were put into
> dev.
>
>
> So, at this point I'm a bit confused, even though I include both the dev &
> staticdev I am only getting the dev files in the SDK. And, also, why are the
> *.a libs being put into staticdev in the first place?
>
>

Hi,
these defaults are defined in meta/conf/bitbake.conf:

PACKAGES = "${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale
${PACKAGE_BEFORE_PN} ${PN}"

This means that staticdev package is created before dev package, just after dbg.

and

FILES_${PN}-staticdev = "${libdir}/*.a ${base_libdir}/*.a ${libdir}/${BPN}/*.a"

indicates that the .a files in these dirs belongs to the staticdev package.

Now, I guess you should try:

 SDKIMAGE_FEATURES = "dev-pkgs dbg-pkgs staticdev-pkgs"

Se https://lists.yoctoproject.org/pipermail/yocto/2014-September/021645.html

Cheers
Andrea


> Regards, Greg
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



More information about the yocto mailing list