title: i586-poky-linux: No rule to make target `arch/x86/tools/relocs.c', needed by `arch/x86/tools/relocs'
body: <p>I have Ubuntu 14.04 64-bit MAC running on VirtualBox on a Macbook Pro. I have the following in <code>hello_kernel.c</code> which I want to run.</p>
  
  <pre><code>#include &lt;linux/module.h&gt;
  #include &lt;linux/kernel.h&gt;
  #include &lt;linux/init.h&gt;   
  
  static int __init enter(void)
  {
      printk(KERN_ALERT "Hello Kernel Galileo\n");
      return 0;
  }
  
  static void __exit exit(void)
  {
      printk(KERN_ALERT "Bye kernel Galileo\n");
      return;
  }
  
  module_init(enter);
  module_exit(exit);
  </code></pre>
  
  <p>I have installed i586-poky-linux in <code>/home/esp/SDK/i586-poky-linux</code> and here is my <code>Makefile</code>.</p>
  
  <pre><code>obj-m:= hello_kernel.o
  
  ARCH=x86
  CROSS_COMPILE=i586-poky-linux-
  
  all:
      make -C /home/esp/SDK/sysroots/i586-poky-linux/usr/src/kernel M=$(PWD) modules
  
  clean:
      rm -fr *.o
      rm -fr *.ko
      rm -fr *.mod.c
      rm -fr *.order
      rm -fr *.symvers
  </code></pre>
  
  <p>I get the following error when I run <code>sudo make</code>.</p>
  
  <pre><code>make[2]: Nothing to be done for `all'.
  make[2]: *** No rule to make target `arch/x86/tools/relocs.c', needed by `arch/x86/tools/relocs'.  Stop.
  make[1]: *** [archscripts] Error 2
  make[1]: Leaving directory `/home/esp/SDK/sysroots/i586-poky-linux/usr/src/kernel'
  </code></pre>
  
  <p>I do not see <code>relocs</code> and <code>relocs.c</code> in <code>~/SDK/sysroots/i586-poky-linux/usr/src/kernel/arch/x86/tools/</code>.</p>