Re: [yocto] populate_sdk and kernel headers

2015-07-08 Thread Benjamin Fleming
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:armccu...@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
 bflem...@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
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] populate_sdk and kernel headers

2015-07-08 Thread Bruce Ashfield

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:armccu...@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
bflem...@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


--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] populate_sdk and kernel headers

2015-07-08 Thread Benjamin Fleming
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.ashfi...@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:armccu...@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
  bflem...@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

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] populate_sdk and kernel headers

2015-07-07 Thread Benjamin Fleming
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
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] populate_sdk and kernel headers

2015-07-07 Thread Andre McCurdy
On Tue, Jul 7, 2015 at 4:16 PM, Benjamin Fleming
bflem...@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
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto