<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>2968</bug_id>
          
          <creation_ts>2012-08-17 23:44:48 +0000</creation_ts>
          <short_desc>Adding /lib/modules/$(shell uname -r)/build to the sdk image.</short_desc>
          <delta_ts>2014-10-06 16:17:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Kernel</product>
          <component>linux-yocto</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="kishore">kishore.k.bodke</reporter>
          <assigned_to name="Nitin Kamble">nitin.a.kamble</assigned_to>
          <cc>kishore.k.bodke</cc>
    
    <cc>vishnupatekar0510</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>24164</commentid>
    <comment_count>0</comment_count>
    <who name="kishore">kishore.k.bodke</who>
    <bug_when>2012-08-17 23:44:48 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45287</commentid>
    <comment_count>1</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2014-08-27 14:56:59 +0000</bug_when>
    <thetext>If only the directory name need to exist, then this can be implemented easily. I am looking into it.

Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45315</commentid>
    <comment_count>2</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2014-08-28 21:55:46 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45853</commentid>
    <comment_count>3</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2014-09-25 16:48:51 +0000</bug_when>
    <thetext>This looks like a related bug:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=6630</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45958</commentid>
    <comment_count>4</comment_count>
      <attachid>2147</attachid>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2014-09-30 01:16:59 +0000</bug_when>
    <thetext>Created attachment 2147
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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45978</commentid>
    <comment_count>5</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2014-09-30 20:58:01 +0000</bug_when>
    <thetext>sent a fix for this to oecore ML.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46129</commentid>
    <comment_count>6</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2014-10-06 16:17:27 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=3224472c68865714716305dfbc8efaa59f73958e</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>2147</attachid>
            <date>2014-09-30 01:16:59 +0000</date>
            <delta_ts>2014-09-30 01:16:59 +0000</delta_ts>
            <desc>a simple sample kernel module sources for test</desc>
            <filename>kernel-module.tgz</filename>
            <type>application/x-compressed-tar</type>
            <size>557</size>
            <attacher name="Nitin Kamble">nitin.a.kamble</attacher>
            
              <data encoding="base64">QlpoOTFBWSZTWSnbaNUAAVj/hMywAERc+/+fL/vUhP9/3+oAAIAIQAH8HQAcZMmjEMTTAQMCaYIw
TE000AGEOMmTRiGJpgIGBNMEYJiaaaADCEFJ+hTamgAGjQAADQAAAAASSTQaBU9qegKeJqep6TIy
Yho02ppoPUabIYp/lv09uDDlamVSg6YQjJwy8I1IsuYjfcpUBXUyByChcQwt39kItGttxd43jvCE
3G8gjQTFYSLildsUR9SbMOqi15swuhUl01DnlFLxxzbtD5LXOazpuSEdN3ZBvjlyUzRrG6BUXys9
KfsOdEpOdRfXOTFAwwqUy2VpyhDkBz3OxBgWbew/Am3zptacYQTMAu7u1Z0HSQowXnuggqihQqFg
GIoiScTpvCIwIAQbILWbqkpI2VkUkc0TPc5mM9/DeJ8VRp/R4kVq7zUv4tBZ4JvyTL2ZFkURqUZJ
qT+87CldXm0q5vLSr8/Vwrl0sp15qSe8nZbg4naczrOFE7OcOJ9o42xCUfWrFURHR6+2JBG0aaBh
Jq0TLxZRIkF1lkzWnlarzyVWK1YrsuslMFRAZWF/CQCXXu7LltAMDUGMLEGROcjNKvIqgmYIBVA5
tKkTz3JoRpw5Ux4azaRHoUY9DEr3JmMdSLIZxK1YNtAsm8lFXNaVKtR8CfcwF5RkC+jjW1YyI4GT
oGXlTnzKAt02ewZOK1KYj1LkEqFJWb04suXCQuEB4Rgf8XckU4UJAp22jVA=
</data>

          </attachment>
      

    </bug>

</bugzilla>