title: Bitbake recipes - Simple file copy
body: <p>I know there is already an answer for my problem here : <a href="https://stackoverflow.com/questions/36163173/bitbake-recipe-doing-a-simple-copy-of-the-image/36164901#36164901">bitbake recipe - doing a simple copy of the image</a></p>
  
  <p>I also want to copy files but I have this error when trying to compile my recipe :</p>
  
  <pre><code>gcc: error: none: No such file or directory
  </code></pre>
  
  <p>Removing the line : </p>
  
  <pre><code>inherit allarch
  </code></pre>
  
  <p>Won't cause me any problem, but apparently I need it to copy my files...</p>
  
  <p>Here is my recipe :</p>
  
  <pre><code>DESCRIPTION = "My description"
  #To prevent the LICENSE field not set
  LICENSE = "CLOSED"
  PR = "r1"
  
  SRC_URI = "file://main.c \
             file://foo_update.sh \
             file://foo.service \
             "
  
  S = "${WORKDIR}/"
  
  FILES_${PN} += "/script"
  
  inherit allarch
  
  do_compile() {
          ${CC} ${WORKDIR}/main.c -o fooupdate
  }
  
  
  do_install() {
          install -m 0755 -d ${D}${bindir} ${D}/script
          install -m 0755 ${S}/fooupdate ${D}${bindir}
          install -m 0755 ${S}/foo_update.sh ${D}/script
          install -m 0755 ${S}/foo.service ${D}/script
  }
  </code></pre>
  
  <p>What am I doing wrong ?</p>
  
  <p>Thank you for your help !</p>