<?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>3757</bug_id>
          
          <creation_ts>2013-01-18 13:41:28 +0000</creation_ts>
          <short_desc>Building a kernel module on target image fails (pre 1.4M3)</short_desc>
          <delta_ts>2013-01-29 16:57:44 +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>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stefan Stanacar">sstncr</reporter>
          <assigned_to name="Darren Hart">dvhart</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>28941</commentid>
    <comment_count>0</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-01-18 13:41:28 +0000</bug_when>
    <thetext>poky commit 9eb88ceb39b7d0b8ddc6487e61ce8edadef10ec4

1. Create a qemux86-64 core-image-sato-sdk image.
2. Run the image under QEMU.
3. Go to /usr/src/kernel and run &quot;make scripts &amp;&amp; make menuconfig&quot;
4. Mark a kernel feature as a module (M) and save the configuration.
5. Run make &amp;&amp; make modules_install in order to compile and install the module.

Output when running make:

root@qemux86-64:/usr/src/kernel# make
make[1]: Nothing to be done for `all&apos;.
make[1]: *** No rule to make target `arch/x86/tools/relocs.c&apos;, needed by `arch/x86/tools/relocs&apos;.  Stop.
make: *** [archscripts] Error 2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28988</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-01-21 17:12:10 +0000</bug_when>
    <thetext>The /usr/src/kernel directory is only intended to contain the headers, scripts, tools, and Makefiles necessary to build EXTERNAL modules. it does not contain ALL of the sources, and is not intended to rebuild parts of the original build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29301</commentid>
    <comment_count>2</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-01-29 16:57:44 +0000</bug_when>
    <thetext>Oki, thanks Darren. The test case was unclear, I&apos;ve update it.
Compiling and loading an external module works just fine.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>