<?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>3729</bug_id>
          
          <creation_ts>2013-01-16 17:15:32 +0000</creation_ts>
          <short_desc>Add a section on how to build out-of-tree modules on the target.</short_desc>
          <delta_ts>2014-06-17 07:14:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Kernel Development</product>
          <component>kernel-development</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>17 June 2014: RESOLVED</status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darren Hart">dvhart</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>dvhart</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sjolley.yp.pm</cc>
    
    <cc>srifenbark</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>28867</commentid>
    <comment_count>0</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-01-16 17:15:32 +0000</bug_when>
    <thetext>By building the sdk image, the toolchain and the kernel-dev package will be installed on the target. As the host binaries have been removed from the kernel-dev package, you will first need to build the scripts prior to building your modules.

$ cd /usr/src/kernel
$ make scripts

Then you should be able to build your out-of-tree modules.

Details in the relevant commits to support this process:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=68a8caa738caa25f313a0bccfd8179cc5584afa5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29309</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-01-29 18:12:50 +0000</bug_when>
    <thetext>Darren, 

Is this task separate from &quot;Incorporating Out-of-Tree Modules&quot; at http://www.yoctoproject.org/docs/1.4/kernel-dev/kernel-dev.html#incorporating-out-of-tree-modules?  And, if so, is the information provided in your comment all the user needs to understand?

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29737</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-02-12 00:49:04 +0000</bug_when>
    <thetext>Still need some info on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38372</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-10-31 17:31:45 +0000</bug_when>
    <thetext>Resetting the target to 1.6.  This is an old bug that I still need clarification on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42582</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-04-10 20:27:23 +0000</bug_when>
    <thetext>Can&apos;t get to this... pushing to 1.7.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43635</commentid>
    <comment_count>5</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-05-29 00:15:21 +0000</bug_when>
    <thetext>Scott, yes, this is a separate issue from Incorporating Out of Tree Modules, which is about recipes like hello-mod. This is about compiling drivers on the device itself using the sdk image.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43720</commentid>
    <comment_count>6</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-06-03 07:58:44 +0000</bug_when>
    <thetext>Darren, 

I have made an attempt at understanding this and creating a section in the kernel-dev manual to address it.  Since there was already a section in there called &quot;Incorporating Out-of-Tree Modules&quot; I decided to group that existing section with a new section called &quot;Building Out-of-Tree Modules on the Target&quot; under a parent section titled &quot;Working with Out-of-Tree Modules&quot;. 

I am not sure I totally understand what parts were necessary for the fix and what is required of the user.  I assumed that just getting in that right directory and running the make scripts was all the use had to do.  Because I am not a kernel developer, I also did not know the entire context.  So, I assumed that the user had to do these things prior to building the SDK image that eventually runs on the target.  Then, I guess that the image is installed and booted on the target and they can automatically build out-of-tree modules as they want.  

So, please review this stuff and correct me where I have made wrong assumptions and we can get it fixed.

http://www.yoctoproject.org/docs/1.7/kernel-dev/kernel-dev.html#working-with-out-of-tree-modules.

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43722</commentid>
    <comment_count>7</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-06-03 08:20:39 +0000</bug_when>
    <thetext>Darren, 

I pinged Richard and he gave me some contextual information that corrected a bad assumption I noted in the Comment 6. Evidently, the user changes to that directory and creates those scripts from the target... not prior to building the SDK image on the build host.  I have updated the section.  You will see the latest but I wanted to note my &quot;gaffe&quot; here in the comments.

Please review when you can.

Thanks,
Scott

http://www.yoctoproject.org/docs/1.7/kernel-dev/kernel-dev.html#working-with-out-of-tree-modules.

I also added Richard to the CC list since I got info from him.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43996</commentid>
    <comment_count>8</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-06-17 07:14:22 +0000</bug_when>
    <thetext>This section has been on review a while and I have received no feedback.  I am marking it RESOLVED and setting the documentation flag to &quot;Done&quot;.

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>