All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* populate_sdk and kernel headers
@ 2015-07-07 23:16 Benjamin Fleming
  2015-07-08  0:53 ` Andre McCurdy
  0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Fleming @ 2015-07-07 23:16 UTC (permalink / raw
  To: yocto@yoctoproject.org

Hello,
I want my kernel headers to be included in the SDK output when I run bitbake myimage -c populate_sdk. I expect to see the headers in my installed SDK folder such as <sdk>/sysroot/<target_mach>/usr/src/kernel; however, I don't see anything there. Also, I don't want the headers appearing on the target.

In my recipe I have added IMAGE_INSTALL += kernel-modules, and SDKIMAGE_FEATURES += kernel-devsrc.  The kernel I'm using is linux-altera-ltsi-rt from https://github.com/kraj/meta-altera/blob/master/recipes-kernel/linux/linux-altera-ltsi-rt_3.10.bb
What am I missing?

Thanks,

Ben


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

* Re: populate_sdk and kernel headers
  2015-07-07 23:16 populate_sdk and kernel headers Benjamin Fleming
@ 2015-07-08  0:53 ` Andre McCurdy
  2015-07-08 17:05   ` Benjamin Fleming
  0 siblings, 1 reply; 5+ messages in thread
From: Andre McCurdy @ 2015-07-08  0:53 UTC (permalink / raw
  To: Benjamin Fleming; +Cc: yocto@yoctoproject.org

On Tue, Jul 7, 2015 at 4:16 PM, Benjamin Fleming
<bfleming@meteorcomm.com> wrote:
> Hello,
> I want my kernel headers to be included in the SDK output when I run bitbake myimage -c populate_sdk. I expect to see the headers in my installed SDK folder such as <sdk>/sysroot/<target_mach>/usr/src/kernel; however, I don't see anything there. Also, I don't want the headers appearing on the target.
>
> In my recipe I have added IMAGE_INSTALL += kernel-modules, and SDKIMAGE_FEATURES += kernel-devsrc.  The kernel I'm using is linux-altera-ltsi-rt from https://github.com/kraj/meta-altera/blob/master/recipes-kernel/linux/linux-altera-ltsi-rt_3.10.bb
> What am I missing?

Try adding kernel-devsrc to IMAGE_INSTALL rather than SDKIMAGE_FEATURES.

> Thanks,
>
> Ben
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


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

* Re: populate_sdk and kernel headers
  2015-07-08  0:53 ` Andre McCurdy
@ 2015-07-08 17:05   ` Benjamin Fleming
  2015-07-08 17:19     ` Bruce Ashfield
  0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Fleming @ 2015-07-08 17:05 UTC (permalink / raw
  To: Andre McCurdy; +Cc: yocto@yoctoproject.org

Ok, 
adding kernel-devsrc to my IMAGE_INSTALL caused the kernel source to be included in the SDK. Unfortunately, it is now also included in the target image. 
I found adding kernel-devsrc instead to TOOLCHAIN_TARGET_TASK gave me what I wanted (/usr/src/kernel in the SDK but NOT in the target image)

Also, I really only need the kernel headers (similar to the linux-headers packages in Ubuntu) for developing out-of-source kernel modules. Is there is a different package I should be using? 

Thanks,
Ben

> -----Original Message-----
> From: Andre McCurdy [mailto:armccurdy@gmail.com]
> Sent: Tuesday, July 07, 2015 5:54 PM
> To: Benjamin Fleming
> Cc: yocto@yoctoproject.org
> Subject: Re: [yocto] populate_sdk and kernel headers
> 
> On Tue, Jul 7, 2015 at 4:16 PM, Benjamin Fleming
> <bfleming@meteorcomm.com> wrote:
> > Hello,
> > I want my kernel headers to be included in the SDK output when I run
> bitbake myimage -c populate_sdk. I expect to see the headers in my installed
> SDK folder such as <sdk>/sysroot/<target_mach>/usr/src/kernel; however, I
> don't see anything there. Also, I don't want the headers appearing on the
> target.
> >
> > In my recipe I have added IMAGE_INSTALL += kernel-modules, and
> > SDKIMAGE_FEATURES += kernel-devsrc.  The kernel I'm using is
> > linux-altera-ltsi-rt from
> > https://github.com/kraj/meta-altera/blob/master/recipes-kernel/linux/l
> > inux-altera-ltsi-rt_3.10.bb
> > What am I missing?
> 
> Try adding kernel-devsrc to IMAGE_INSTALL rather than
> SDKIMAGE_FEATURES.
> 
> > Thanks,
> >
> > Ben
> > --
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto

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

* Re: populate_sdk and kernel headers
  2015-07-08 17:05   ` Benjamin Fleming
@ 2015-07-08 17:19     ` Bruce Ashfield
  2015-07-08 17:52       ` Benjamin Fleming
  0 siblings, 1 reply; 5+ messages in thread
From: Bruce Ashfield @ 2015-07-08 17:19 UTC (permalink / raw
  To: Benjamin Fleming, Andre McCurdy; +Cc: yocto@yoctoproject.org

On 2015-07-08 1:05 PM, Benjamin Fleming wrote:
> Ok,
> adding kernel-devsrc to my IMAGE_INSTALL caused the kernel source to be included in the SDK. Unfortunately, it is now also included in the target image.
> I found adding kernel-devsrc instead to TOOLCHAIN_TARGET_TASK gave me what I wanted (/usr/src/kernel in the SDK but NOT in the target image)
>
> Also, I really only need the kernel headers (similar to the linux-headers packages in Ubuntu) for developing out-of-source kernel modules. Is there is a different package I should be using?
>

The linux-libc-headers are the uapi exported headers, but as for the
source for module builds, it is currently unified in the
kernel-devsrc package.

We have a long history with the packaging of the sources, and what
to export where .. and even the ordering of that packaging. So while
splitting out the headers may seem simple, it requires a bit more
finesse of getting the headers, the right amount of script and Kbuild
support to get it exactly right.

By keeping the two together, we ensure that we have enough to meet
all development tasks.

There are some enhancements for this in flight for the 1.9 release, so
it is something that we are considering .. just keeping those existing
use cases and workflows from breaking is the sticky part.

Cheers,

Bruce

> Thanks,
> Ben
>
>> -----Original Message-----
>> From: Andre McCurdy [mailto:armccurdy@gmail.com]
>> Sent: Tuesday, July 07, 2015 5:54 PM
>> To: Benjamin Fleming
>> Cc: yocto@yoctoproject.org
>> Subject: Re: [yocto] populate_sdk and kernel headers
>>
>> On Tue, Jul 7, 2015 at 4:16 PM, Benjamin Fleming
>> <bfleming@meteorcomm.com> wrote:
>>> Hello,
>>> I want my kernel headers to be included in the SDK output when I run
>> bitbake myimage -c populate_sdk. I expect to see the headers in my installed
>> SDK folder such as <sdk>/sysroot/<target_mach>/usr/src/kernel; however, I
>> don't see anything there. Also, I don't want the headers appearing on the
>> target.
>>>
>>> In my recipe I have added IMAGE_INSTALL += kernel-modules, and
>>> SDKIMAGE_FEATURES += kernel-devsrc.  The kernel I'm using is
>>> linux-altera-ltsi-rt from
>>> https://github.com/kraj/meta-altera/blob/master/recipes-kernel/linux/l
>>> inux-altera-ltsi-rt_3.10.bb
>>> What am I missing?
>>
>> Try adding kernel-devsrc to IMAGE_INSTALL rather than
>> SDKIMAGE_FEATURES.
>>
>>> Thanks,
>>>
>>> Ben
>>> --
>>> _______________________________________________
>>> yocto mailing list
>>> yocto@yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto



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

* Re: populate_sdk and kernel headers
  2015-07-08 17:19     ` Bruce Ashfield
@ 2015-07-08 17:52       ` Benjamin Fleming
  0 siblings, 0 replies; 5+ messages in thread
From: Benjamin Fleming @ 2015-07-08 17:52 UTC (permalink / raw
  To: Bruce Ashfield, Andre McCurdy; +Cc: yocto@yoctoproject.org

Ok,
Well I can live with the complete source being in the SDK. 

Thank you for the help
-Ben

> -----Original Message-----
> From: Bruce Ashfield [mailto:bruce.ashfield@windriver.com]
> Sent: Wednesday, July 08, 2015 10:20 AM
> To: Benjamin Fleming; Andre McCurdy
> Cc: yocto@yoctoproject.org
> Subject: Re: [yocto] populate_sdk and kernel headers
> 
> On 2015-07-08 1:05 PM, Benjamin Fleming wrote:
> > Ok,
> > adding kernel-devsrc to my IMAGE_INSTALL caused the kernel source to
> be included in the SDK. Unfortunately, it is now also included in the target
> image.
> > I found adding kernel-devsrc instead to TOOLCHAIN_TARGET_TASK gave
> me
> > what I wanted (/usr/src/kernel in the SDK but NOT in the target image)
> >
> > Also, I really only need the kernel headers (similar to the linux-headers
> packages in Ubuntu) for developing out-of-source kernel modules. Is there is
> a different package I should be using?
> >
> 
> The linux-libc-headers are the uapi exported headers, but as for the source
> for module builds, it is currently unified in the kernel-devsrc package.
> 
> We have a long history with the packaging of the sources, and what to export
> where .. and even the ordering of that packaging. So while splitting out the
> headers may seem simple, it requires a bit more finesse of getting the
> headers, the right amount of script and Kbuild support to get it exactly right.
> 
> By keeping the two together, we ensure that we have enough to meet all
> development tasks.
> 
> There are some enhancements for this in flight for the 1.9 release, so it is
> something that we are considering .. just keeping those existing use cases
> and workflows from breaking is the sticky part.
> 
> Cheers,
> 
> Bruce
> 
> > Thanks,
> > Ben
> >
> >> -----Original Message-----
> >> From: Andre McCurdy [mailto:armccurdy@gmail.com]
> >> Sent: Tuesday, July 07, 2015 5:54 PM
> >> To: Benjamin Fleming
> >> Cc: yocto@yoctoproject.org
> >> Subject: Re: [yocto] populate_sdk and kernel headers
> >>
> >> On Tue, Jul 7, 2015 at 4:16 PM, Benjamin Fleming
> >> <bfleming@meteorcomm.com> wrote:
> >>> Hello,
> >>> I want my kernel headers to be included in the SDK output when I run
> >> bitbake myimage -c populate_sdk. I expect to see the headers in my
> >> installed SDK folder such as
> >> <sdk>/sysroot/<target_mach>/usr/src/kernel; however, I don't see
> >> anything there. Also, I don't want the headers appearing on the target.
> >>>
> >>> In my recipe I have added IMAGE_INSTALL += kernel-modules, and
> >>> SDKIMAGE_FEATURES += kernel-devsrc.  The kernel I'm using is
> >>> linux-altera-ltsi-rt from
> >>> https://github.com/kraj/meta-altera/blob/master/recipes-kernel/linux
> >>> /l
> >>> inux-altera-ltsi-rt_3.10.bb
> >>> What am I missing?
> >>
> >> Try adding kernel-devsrc to IMAGE_INSTALL rather than
> >> SDKIMAGE_FEATURES.
> >>
> >>> Thanks,
> >>>
> >>> Ben
> >>> --
> >>> _______________________________________________
> >>> 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:[~2015-07-08 17:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-07 23:16 populate_sdk and kernel headers Benjamin Fleming
2015-07-08  0:53 ` Andre McCurdy
2015-07-08 17:05   ` Benjamin Fleming
2015-07-08 17:19     ` Bruce Ashfield
2015-07-08 17:52       ` Benjamin Fleming

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.