Bug 2968 - Adding /lib/modules/$(shell uname -r)/build to the sdk image.
Summary: Adding /lib/modules/$(shell uname -r)/build to the sdk image.
Status: RESOLVED FIXED
Alias: None
Product: Kernel
Classification: Yocto Project Subprojects
Component: linux-yocto (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Low minor
Target Milestone: Future
Assignee: Nitin Kamble
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-08-17 23:44 UTC by kishore
Modified: 2014-10-06 16:17 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: New (Never tested)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
a simple sample kernel module sources for test (557 bytes, application/x-compressed-tar)
2014-09-30 01:16 UTC, Nitin Kamble
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description kishore 2012-08-17 23:44:48 UTC
Hi,

This is to request for having the standard mechanism for building the kernel modules on the sdk target.

Currently Yocto sdk Image does not have /lib/modules/$(shell uname -r)/build, which is the standard path to look for the kernel headers while building the kernel module.

Having this in Yocto sdk image would be a good option to build the kernel modules on the target.

Thanks
Kishore.
Comment 1 Nitin Kamble 2014-08-27 14:56:59 UTC
If only the directory name need to exist, then this can be implemented easily. I am looking into it.

Nitin
Comment 2 Nitin Kamble 2014-08-28 21:55:46 UTC
Looking further into this I noted:

1. This will need changes to the linux-yocto recipes from oecore
2. The building and packaging of the kernel recipes will be changed
3. the linux-yocto kernel recipes have lot of customization, which complicates the work further.
4. Given the M3 cut-off date is just one more day, It makes sense to push this features to post 1.7 release.
Comment 3 Nitin Kamble 2014-09-25 16:48:51 UTC
This looks like a related bug:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=6630
Comment 4 Nitin Kamble 2014-09-30 01:16:59 UTC
Created attachment 2147 [details]
a simple sample kernel module sources for test

I am able to build the attached kernel module on the target after making a softlink from /usr/src/kernel/ to /lib/modules/$(shell uname -r)/build
Comment 5 Nitin Kamble 2014-09-30 20:58:01 UTC
sent a fix for this to oecore ML.