title: How to build hello world recipe in yocto
body: <ol>
  <li>C file</li>
  </ol>
  
  <pre><code>
      int main() {
      printf("Hello, World!\n");
      return 0;
      } 
  </code></pre>
  
  <ol start="2">
  <li>helloworld.bb</li>
  </ol>
  
  <pre><code>DESCRIPTION = "Recipe created by bitbake-layers"
  LICENSE = "MIT"
  LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
  
  
  SRC_URI = "file://${BSPDIR}/poky/build-microchip/my_layer/recipes-example/helloworld/helloworld/helloworld.c"
  
  S = "/home/user/my_dir/poky/build-microchip/conf"
  
  do_compile() {
          ${CC} helloworld.c  -o helloworld
  }
  
  do_install() {
          install -d ${D}${bindir}
          install -m 0755 helloworld ${D}${bindir}
  } 
  </code></pre>
  
  <ol start="3">
  <li>Run Command</li>
  </ol>
  
  <p>bitbake helloworld</p>
  
  <p><strong>ERROR</strong>
  error in do_compile() block helloworld.c file not found</p>
  
  <ol>
  <li>File Tree</li>
  </ol>
  
  <pre><code>    build-microchip/my_layer/recipes-examples/
      └── helloworld
          ├── helloworld
          │   └── helloworld.c
          └── helloworld.bb
  </code></pre>
  
  <p>2 directories, 2 files</p>