title: Yocto: cp can't stat file: no such file or directory
body: <p>I am trying to copy two folders(containing some scripts) in my target rootfs. I have created a custom layer and a custom recipe inside it. 
   My directory structure is like this:</p>
  
  <pre><code>../sources/meta-company/recipes-bla_2.06/
  └── bla
      ├── bla
      │   ├── dir1
      │   │   ├── dir
      │   │   │   └── files.sh
      │   └── dir2
      │       ├── dir
      │       │   ├── files.sql
      │       ├── test.sh
      └── bla_2.06.bb
  </code></pre>
  
  <p>My .bb file is as follows:</p>
  
  <pre><code>DESCRIPTION = " bla "
  
  LICENSE = "CLOSED"
  
  SRC_URI = "file://dir1/ \
             file://dir2/ "
  
  do_install() {
      install -d ${D}/root/dir1
      install -d ${D}/root/dir2
      cp -r --no-dereference --preserve=mode,links -v ${S}/dir1/ ${D}/root/dir1
      cp -r --no-dereference --preserve=mode,links -v ${S}/dir2/ ${D}/root/dir2/
  }
  
  FILE_$PN = "/root/"
  </code></pre>
  
  <p>The error I am getting:</p>
  
  <pre><code>&gt; Log data follows: | DEBUG: Executing shell function do_install | cp:
  &gt; cannot stat
  &gt; '/home/amol/test/fsl-arm-yocto-bsp/build-cl-som-imx7-fsl-imx-x11/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/bla/1.0-r0/bla-1.0/dir1':
  &gt; No such file or directory | WARNING: exit code 1 from a shell command.
  &gt; | ERROR: Function failed: do_install (log file is located at
  &gt; /home/amol/test/fsl-arm-yocto-bsp/build-cl-som-imx7-fsl-imx-x11/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/seriald/1.0-r0/temp/log.do_install.49808)
  &gt; NOTE: recipe bla-1.0-r0: task do_install: Failed NOTE: Tasks Summary:
  &gt; Attempted 334 tasks of which 333 didn't need to be rerun and 1 failed.
  </code></pre>
  
  <p>I am new to yocto, is my .bb file correct?.Thanks in advance.</p>