<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Arial" size="2"><span style="font-size:10pt;">
<div>The source code of my SW consist of multiple components from different repository, which is managed by a repo manifest repository. So I want to use &#8220;repo://&#8221; for the repo manifest repository instead of multiple &#8220;git://&#8221; to include all repositories in the
SRC_URI.</div>
<div>&nbsp;</div>
<div>I add the following to MyRecipe_git.bb:</div>
<div>```</div>
<div>SRC_URI = &#8220;repo://git@&lt;MY_HOST&gt;/manifest.git;protocol=ssh;branch=master&#8221;</div>
<div><font face="Times New Roman" size="2"><span style="font-size:11pt;">&nbsp;</span></font></div>
<div>S = &#8220;${WORKDIR}/repo/MyRecipe&#8221;</div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;">```</span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;">&nbsp;</span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;">And in my local.conf, I add the following:</span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;">```</span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"># Use this setting because I don&#8217;t have internet connection to external Android repo.git, I mirror one in the internal host</span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;">REPO_URL = &#8220;git@&lt;My_HOST&gt;/repo.git&#8221;</span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"># Use &#8220;repo&#8221; command in the host</span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;">HOSTTOOLS &#43;= &#8220;repo&#8221;</span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"># Because the my Yocto meta-layers are managed by repo also, use a different directory for my recipe </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;">REPODIR = &#8220;/home/benguan/projects/MyRecipeRepo&#8221;</span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;">```</span></font></div>
<div><font face="Times New Roman" size="2"><span style="font-size:11pt;">&nbsp;</span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;">Now I can build my recipe with Yocto, but there is an issue:&nbsp; When there is any change required in the repositories of my application, I will change the code and update the tags in default.xml
of manifest.git. I want Yocto could detect this change, fetch the change, them rebuild the recipe.&nbsp; </span></font></div>
<div><font face="Times New Roman" size="2"><span style="font-size:11pt;">&nbsp;</span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;">With &#8220;git://&#8221;, it is easy to achieve via setting &#8220;${AUTOREV}&#8221; to &#8220;SRCREV&#8221;. But the fetch2.repo doesn&#8217;t support SRCREV. I have go through the existing recipe within meta-oe and oe-core, no recipe
is using &#8220;repo://&#8221;.</span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;">&nbsp;</span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;">Does anybody have experience about it and help? Thank you in advance.</span></font></div>
<div><font face="Times New Roman" size="2"><span style="font-size:11pt;">&nbsp;</span></font></div>
</span></font>
</body>
</html>