title: how to install Kernel patch locally in yocto?
body: <p>I want to how to install a kernel patch in yocto. Please guide me</p>
  
  <p>I have included couple of printk statement in <strong>calibrate.c</strong> file which is located in /home/host/poky/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/linux-libc-headers/3.8-r0/linux-3.8/init/calibrate.c</p>
  
  <p>then i have created a patch file using 
  diff -Nuar ~/calibrate.c   /home/host/poky/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/linux-libc-headers/3.8-r0/linux-3.8/init/calibrate.c > <strong>calibrate.patch</strong></p>
  
  <p>then placed the calibrat.patch file in <em>poky/meta/recipies-kernel/linux-libc-headers/linux-libc-headers/</em> directory</p>
  
  <p>then I have edited the linux-libc-headers_3.8.bb file located in /poky/meta/recipies-kernel/linux-libc-headers/ with the following <strong>SCR_URI = file://calibrate.patch</strong></p>
  
  <p>Then after executing bitbake -k core-image-minimal i am getting the following error.</p>
  
  <pre><code>ERROR: Command Error: exit status: 1  Output: Applying patch calibrate.patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was:
  -------------------------- |--- calibrate.c 2015-12-09 15:00:11.547924616 +0530 |+++ a/calibrate.c  2015-12-09 14:59:31.387923200 +0530
  -------------------------- No file to patch.  Skipping patch. 1 out of 1 hunk ignored
  
  Patch calibrate.patch does not apply (enforce with -f)
  
  ERROR: Function failed: patch_do_patch
  
  ERROR: Logfile of failure stored in: /home/host/poky/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/linux-libc-headers/3.8-r0/temp/log.do_patch.14062
  
  ERROR: Task 434 (/home/host/poky/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_3.8.bb, do_patch) failed with exit code '1'
  </code></pre>