title: With Yocto, how can I add a lot of files to an image?
body: <p>How can I add a lot of files to an image with a BitBake recipe?</p>
  
  <p>The pattern that I follow to add files to an image is the following: </p>
  
  <pre><code>SRC_URI += "file://bar"
  do_install () {   
      install -m 0775 ${S}/bar/baz/foo.txt ${D}${prefix}/test 
  }
  FILES_${PN} += "${prefix}"
  FILES_${PN} += "${prefix}test"
  FILES_${PN} += "${prefix}test/foo.txt"
  </code></pre>
  
  <p>Which works great for a few files. However, this can be really tedious for large amounts of files.  The problem seems to be that I need to specify each file that I want to package. Is there some way to avoid this?</p>