<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 “repo://” for the repo manifest repository instead of multiple “git://” to include all repositories in the
SRC_URI.</div>
<div> </div>
<div>I add the following to MyRecipe_git.bb:</div>
<div>```</div>
<div>SRC_URI = “repo://git@<MY_HOST>/manifest.git;protocol=ssh;branch=master”</div>
<div><font face="Times New Roman" size="2"><span style="font-size:11pt;"> </span></font></div>
<div>S = “${WORKDIR}/repo/MyRecipe”</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;"> </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’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 = “git@<My_HOST>/repo.git”</span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"># Use “repo” command in the host</span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;">HOSTTOOLS += “repo”</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 = “/home/benguan/projects/MyRecipeRepo”</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;"> </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: 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. </span></font></div>
<div><font face="Times New Roman" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;">With “git://”, it is easy to achieve via setting “${AUTOREV}” to “SRCREV”. But the fetch2.repo doesn’t support SRCREV. I have go through the existing recipe within meta-oe and oe-core, no recipe
is using “repo://”.</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;">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;"> </span></font></div>
</span></font>
</body>
</html>