<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Russell,</p>
<p>You don't need PREMIRROR for this functionality. It's not exactly
intended for that use.</p>
<p>The simplest way to achieve what you are looking for is to use
devtool. If I understand you correctly you are downloading sources
from a remote repo on GitHub but want to have them locally to make
modifications? If so use:</p>
<p>devtool add myrecipe localsrc fetchuri</p>
<p>from your build environment (you have to source oe-init-build-env
first). devtool then fetches the source from fetchuri into a
directory localsrc as a git repo and automatically creates the
recipe for it.</p>
<p>:rjs<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 7/23/19 1:49 PM, 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><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>
<pre class="moz-signature" cols="72">--
-----
Rudolf J Streif
CEO/CTO ibeeto
+1.855.442.3396 x700</pre>
</body>
</html>