<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 7/24/19 4:49 AM, Russell Peterson
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJxG=fmKGb1fSVi=tRF2shqYbOkuYBiDzXOhSQRPXdHxs63gbg@mail.gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hello,<br>
        </div>
        <div><br>
        </div>
        <div>I am looking to have bitbake pick up files for a particular
          recipe from a local git repository using the PREMIRROR
          functionality.</div>
        <div><br>
        </div>
        <div>Basically, the recipe (bb file) points to github but in my
          local build I add PREMIRROR_prepend = "git://.*/.* 
          git:///local/path/BASENAME;protocol=file\n"</div>
        <div><br>
        </div>
        <div>I will probably make the git regular expression more exact
          for my specific github repo but this works for now.</div>
        <div><br>
        </div>
        <div>This all works (as I deleted the github download from the
          local download directory) because I can see in the do_fetch
          log and the correct (local) repo was found and placed in the
          DL_DIR.</div>
        <div><br>
        </div>
        <div>Problem is, do_unpack fails because it appears to be
          looking for the original (github) SRC_URI.  Then it complains
          about "no up to date source found: clone or directory not
          available or not up to date (shallow clone not enabled)"</div>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>Maybe you can use BB_GENERATE_MIRROR_TARBALLS to generate git
      repo tarball and put it to your download mirror.<br>
    </p>
    <p>See:
<a class="moz-txt-link-freetext" href="https://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#var-bb-BB_GENERATE_MIRROR_TARBALLS">https://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#var-bb-BB_GENERATE_MIRROR_TARBALLS</a></p>
    <p>        and<br>
    </p>
    <p>       
<a class="moz-txt-link-freetext" href="https://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#var-DL_DIR">https://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#var-DL_DIR</a><br>
    </p>
    <p><br>
    </p>
    <p>Regards,</p>
    <p>Yi</p>
    <p><br>
    </p>
    <blockquote type="cite"
cite="mid:CAJxG=fmKGb1fSVi=tRF2shqYbOkuYBiDzXOhSQRPXdHxs63gbg@mail.gmail.com">
      <div dir="ltr">
        <div><br>
        </div>
        <div>Any help on what I am missing would be appreciated.</div>
        <div><br>
        </div>
        <div>Regards,</div>
        <div><br>
        </div>
        <div>Russell</div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
    </blockquote>
  </body>
</html>