title: How to setup an Yocto recipe to build from a local git source?
body: <p>Hej</p>
  
  <p>I am playing a bit around with Yocto, a Raspberry Pi and some code I wrote. Now I want that Yocto is building an image including the program I wrote. I like to know how to setup the fetcher to fetch from a local git repro.</p>
  
  <p>My setup is simple. The code is in the directory:</p>
  
  <pre><code>/home/user/git/myTest
  </code></pre>
  
  <p>I linked the directory into my recipe directory of my Yocto meta-layer.</p>
  
  <pre><code>/home/user/poky/meta-test/myApp/myTest
  </code></pre>
  
  <p>Because it is a local git repro, there is the ".git" folder.</p>
  
  <pre><code>/home/user/git/myTest/.git
  </code></pre>
  
  <p>There are more files:</p>
  
  <pre><code>/home/user/git/myTest/CMakeLists.txt
  /home/user/git/myTest/src/main.cpp
  /home/user/git/myTest/src/...
  </code></pre>
  
  <p>I like to know how to setup my recipe to use the git fetcher:</p>
  
  <pre><code>SUMMARY = "test"
  SECTION = "app"
  LICENSE = "CLOSED"
  
  inherit cmake
  
  SRCREV = "${AUTOREV}"
  
  SRC_URI = "git://.git"
  
  S = "${WORKDIR}/git"
  </code></pre>
  
  <p>I did check the Yocto/Bitbake documentation. But I did not find an example how to do it.
  Any ideas?</p>