Skip to contentSkip to conversation

Problem with populate_sdk

DISCUSSION Greg Wilson-Lindberg 2 participants 5 messages Oct 19, 2017 – Oct 23, 2017

lore
Share & tools
lore
#0 lore raw

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?

Regards, Greg

#1 lore raw
Quoted 17 lines · Greg Wilson-Lindberg

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"

Quoted 10 lines

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

Quoted 9 lines

Regards, Greg

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#2 lore raw

Hi Andrea,
I added the dbg-pkgs to the IMAGE_FEATURES but it didn't seem to make a difference in what was included, still no .a file in the SYSROOT. Regards,
Greg

Quoted 72 lines

-----Original Message-----
From: Andrea Adami [mailto:[email protected]]
Sent: Sunday, October 22, 2017 4:12 PM
To: Greg Wilson-Lindberg <[email protected]>
Cc: [email protected]
Subject: Re: [yocto] Problem with populate_sdk

Quoted 17 lines · Greg Wilson-Lindberg

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"

Quoted 10 lines

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

Quoted 9 lines

Regards, Greg

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#3 lore raw
Quoted 4 lines · Greg Wilson-Lindberg

Hi Andrea,
I added the dbg-pkgs to the IMAGE_FEATURES but it didn't seem to make a difference in what was included, still no .a file in the SYSROOT. Regards,
Greg

Hi Greg,
maybe I wasn't clear, from the manual:

SDKIMAGE_FEATURES: Lists the features to include in the "target" part of the SDK.

IMAGE_FEATURES: Specifies features to include in the image. Most of these features map to additional packages for installation.

So please use SDKIMAGE_FEATURES = "dev-pkgs staticdev-pkgs"

Cheers
Andrea

Quoted 73 lines
Quoted 73 lines

-----Original Message-----
From: Andrea Adami [mailto:[email protected]]
Sent: Sunday, October 22, 2017 4:12 PM
To: Greg Wilson-Lindberg <[email protected]>
Cc: [email protected]
Subject: Re: [yocto] Problem with populate_sdk

Quoted 17 lines · Greg Wilson-Lindberg

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"

Quoted 10 lines

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

Quoted 9 lines

Regards, Greg

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#4 lore raw

Hi Andrea,
You're right, I missed the SDK in the IMAGE_FEATURES. I just changed that in my image recipe and rebuit the image and then the SDK and the sdk was not rebuilt from the one earlier this morning.

Here is the line from my image recipe:
SDKIMAGE_FEATURES += "dev-pkgs dbg-pkgs staticdev-pkgs"

Regards,
Greg

Quoted 103 lines

-----Original Message-----
From: Andrea Adami [mailto:[email protected]]
Sent: Monday, October 23, 2017 1:50 PM
To: Greg Wilson-Lindberg <[email protected]>
Cc: [email protected]
Subject: Re: [yocto] Problem with populate_sdk

Quoted 2 lines · Greg Wilson-Lindberg

Hi Andrea,
I added the dbg-pkgs to the IMAGE_FEATURES but it didn't seem to make a

difference in what was included, still no .a file in the SYSROOT.

Quoted 2 lines

Regards,
Greg

Hi Greg,
maybe I wasn't clear, from the manual:

SDKIMAGE_FEATURES: Lists the features to include in the "target" part of the SDK.

IMAGE_FEATURES: Specifies features to include in the image. Most of these features map to additional packages for installation.

So please use SDKIMAGE_FEATURES = "dev-pkgs staticdev-pkgs"

Cheers
Andrea

Quoted 44 lines
Quoted 44 lines

-----Original Message-----
From: Andrea Adami [mailto:[email protected]]
Sent: Sunday, October 22, 2017 4:12 PM
To: Greg Wilson-Lindberg <[email protected]>
Cc: [email protected]
Subject: Re: [yocto] Problem with populate_sdk

Quoted 17 lines · Greg Wilson-Lindberg

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"

Quoted 10 lines

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

Quoted 6 lines
Quoted 6 lines

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"

Quoted 23 lines
Quoted 23 lines

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

Quoted 9 lines

Regards, Greg

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto