title: How can I add some file (maybe like /home/eric/libtest0.1.so) to Yocto rootfs lib folder(/lib)?
body: <p>I'm a Yocto newbie in Taiwan and my Yocto is base on NXP fsl.</p>
  
  <p>I need to modify recipe(fsl-inmage-auto.bb) to add file into rootfs lib folder, like:</p>
  
  <p>/home/eric/libtest.1.0.so  --add to-->   EVK SD card (/lib/)</p>
  
  <p>Then "bitbake fsl-image-auto" to build image.</p>
  
  <p>I tried some method but now still didn't work. my code is shown below:</p>
  
  <pre><code>#------------ Test copy file from ~ to rootfs /lib ------------
  LICENSE = "CLOSED"
  
  SRC_URI = "file:///home/eric/*"
  do_install(){
      install -m 0644 ${S}/home/eric/liberictest.so ${D}/lib/
  }
  #-----------------
  </code></pre>
  
  <p>I tried install and cp cmd, but these method did not work...
  So what method can do this?</p>
  
  <p>Sorry for my question and thanks.</p>