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