title: How can I add a folder or file to the root in a recipe with bitbake?
body: <p>I am trying to put a folder into the root of the filesystem. In the documentation (e.g. <a href="http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#understanding-recipe-syntax" rel="noreferrer">here</a>) they use mostly variables and so the files and folders from <code>SRC_URI</code> result in being stored under <code>/usr/bin</code> or something but never in <code>/</code>.</p>
  
  <p>So here is my recipe:</p>
  
  <pre><code>DESCRIPTION = "Example for adding files and folders to rootfs"
  
  SRC_URI += "file://example_folder"
  SRC_URI += "file://example_file"
  
  LICENSE = [...]
  
  do_install() {
      install -d ${D}/rootfolder
      cp -r ${WORKDIR}/example_folder ${D]/rootfolder/
      install -m 0755 ${WORKDIR}/example_file ${D}/rootfolder
  }
  </code></pre>
  
  <p>This is just one of very many <code>do_install</code> variants that I tried.Every of them resulted in either <code>Error: example not found in the base feeds [...]</code> or that the files and folders haven't been placed in the root but in <code>/usr/bin</code> as explained above.</p>