All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem with populate_sdk
@ 2017-10-19 18:26 Greg Wilson-Lindberg
  2017-10-22 23:11 ` Andrea Adami
  0 siblings, 1 reply; 5+ messages in thread
From: Greg Wilson-Lindberg @ 2017-10-19 18:26 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 778 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 3051 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with populate_sdk
  2017-10-19 18:26 Problem with populate_sdk Greg Wilson-Lindberg
@ 2017-10-22 23:11 ` Andrea Adami
  2017-10-23 20:31   ` Greg Wilson-Lindberg
  0 siblings, 1 reply; 5+ messages in thread
From: Andrea Adami @ 2017-10-22 23:11 UTC (permalink / raw)
  To: Greg Wilson-Lindberg; +Cc: yocto

On Thu, Oct 19, 2017 at 8:26 PM, Greg Wilson-Lindberg
<GWilson@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@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with populate_sdk
  2017-10-22 23:11 ` Andrea Adami
@ 2017-10-23 20:31   ` Greg Wilson-Lindberg
  2017-10-23 20:50     ` Andrea Adami
  0 siblings, 1 reply; 5+ messages in thread
From: Greg Wilson-Lindberg @ 2017-10-23 20:31 UTC (permalink / raw)
  To: Andrea Adami; +Cc: yocto

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

> -----Original Message-----
> From: Andrea Adami [mailto:andrea.adami@gmail.com]
> Sent: Sunday, October 22, 2017 4:12 PM
> To: Greg Wilson-Lindberg <GWilson@sakuraus.com>
> Cc: yocto@yoctoproject.org
> Subject: Re: [yocto] Problem with populate_sdk
> 
> On Thu, Oct 19, 2017 at 8:26 PM, Greg Wilson-Lindberg
> <GWilson@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@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
> >

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with populate_sdk
  2017-10-23 20:31   ` Greg Wilson-Lindberg
@ 2017-10-23 20:50     ` Andrea Adami
  2017-10-23 21:47       ` Greg Wilson-Lindberg
  0 siblings, 1 reply; 5+ messages in thread
From: Andrea Adami @ 2017-10-23 20:50 UTC (permalink / raw)
  To: Greg Wilson-Lindberg; +Cc: yocto

On Mon, Oct 23, 2017 at 10:31 PM, Greg Wilson-Lindberg
<GWilson@sakuraus.com> wrote:
> 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

>
>> -----Original Message-----
>> From: Andrea Adami [mailto:andrea.adami@gmail.com]
>> Sent: Sunday, October 22, 2017 4:12 PM
>> To: Greg Wilson-Lindberg <GWilson@sakuraus.com>
>> Cc: yocto@yoctoproject.org
>> Subject: Re: [yocto] Problem with populate_sdk
>>
>> On Thu, Oct 19, 2017 at 8:26 PM, Greg Wilson-Lindberg
>> <GWilson@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@yoctoproject.org
>> > https://lists.yoctoproject.org/listinfo/yocto
>> >


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with populate_sdk
  2017-10-23 20:50     ` Andrea Adami
@ 2017-10-23 21:47       ` Greg Wilson-Lindberg
  0 siblings, 0 replies; 5+ messages in thread
From: Greg Wilson-Lindberg @ 2017-10-23 21:47 UTC (permalink / raw)
  To: Andrea Adami; +Cc: yocto

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

> -----Original Message-----
> From: Andrea Adami [mailto:andrea.adami@gmail.com]
> Sent: Monday, October 23, 2017 1:50 PM
> To: Greg Wilson-Lindberg <GWilson@sakuraus.com>
> Cc: yocto@yoctoproject.org
> Subject: Re: [yocto] Problem with populate_sdk
> 
> On Mon, Oct 23, 2017 at 10:31 PM, Greg Wilson-Lindberg
> <GWilson@sakuraus.com> wrote:
> > 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
> 
> >
> >> -----Original Message-----
> >> From: Andrea Adami [mailto:andrea.adami@gmail.com]
> >> Sent: Sunday, October 22, 2017 4:12 PM
> >> To: Greg Wilson-Lindberg <GWilson@sakuraus.com>
> >> Cc: yocto@yoctoproject.org
> >> Subject: Re: [yocto] Problem with populate_sdk
> >>
> >> On Thu, Oct 19, 2017 at 8:26 PM, Greg Wilson-Lindberg
> >> <GWilson@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@yoctoproject.org
> >> > https://lists.yoctoproject.org/listinfo/yocto
> >> >


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-10-23 21:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-19 18:26 Problem with populate_sdk Greg Wilson-Lindberg
2017-10-22 23:11 ` Andrea Adami
2017-10-23 20:31   ` Greg Wilson-Lindberg
2017-10-23 20:50     ` Andrea Adami
2017-10-23 21:47       ` Greg Wilson-Lindberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.