<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,<br>
<br>
I'd like to auto-increment my package revision.&nbsp; I have 'SRCREV = &quot;${AUTOREV}&quot; ', and 'PR_append = &quot;&#43;gitr${SRCPV}&quot; ' set.&nbsp; This is working fine as long as I stay on a single branch.&nbsp; However, my SRC_URI has the branch parameter set to branch=${BRANCH}, and
 BRANCH is set in the environment prior to calling bitbake.&nbsp; This has resulted in the following issue.<br>
<br>
On the develop branch, my package name is:<br>
<br>
setup-utility_0.90-r24&#43;gitr9&#43;537d03f5ed3a78caa8148448c8c92053be99010d_armv7a-vfp-neon.ipk<br>
<br>
and on the release branch:<br>
<br>
setup-utility_0.90-r24&#43;gitr1&#43;db553099700f4b6a5e2db0475957700afe6cbcab_armv7a-vfp-neon.ipk<br>
<br>
The release branch had been built most recently.&nbsp; I want opkg to use the latest package regardless of which branch it was built on, but in this case opkg will use the develop build.<br>
<br>
I'm not sure how to correct this.&nbsp; I see references to LOCALCOUNT and AUTOINC, and it seems like other people have had similar issues, but after reviewing them I'm still not sure of the best solution.<br>
<br>
Here's a the relevant snippets from my recipe:<br>
<br>
&nbsp;&nbsp; SRC_URI = &quot;git://gitolite@....com/universal/SetupUtility.git;protocol=ssh;branch=${BRANCH}&quot;<br>
&nbsp;&nbsp; PV = &quot;0.90&quot;<br>
<br>
&nbsp;&nbsp; SRCREV = &quot;${AUTOREV}&quot;<br>
<br>
&nbsp;&nbsp; # Package Revision, Update this whenever you change the recipe. <br>
&nbsp;&nbsp; PR = &quot;r24&quot;<br>
&nbsp;&nbsp; PR_append = &quot;&#43;gitr${SRCPV}&quot;<br>
<br>
If anyone could provide any help/suggestions, I would really appreciate it.<br>
<div><br>
<div style="font-family:Tahoma; font-size:13px"><span lang="en-US">
<div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial Narrow,sans-serif" size="3"><span style="font-size:12pt">Christopher J. Wyse<br>
</span></font></span></font></div>
<div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial Narrow,sans-serif" size="3"><span style="font-size:12pt">Embedded Software Engineer<br>
</span></font></span></font></div>
<div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial Narrow,sans-serif" size="3"><span style="font-size:12pt">Accu-Time Systems</span></font></span></font></div>
<div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial Narrow,sans-serif" size="3"><span style="font-size:12pt">420 Somers Road</span></font></span></font></div>
<div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial Narrow,sans-serif" size="3"><span style="font-size:12pt">Ellington, CT&nbsp; 06029</span></font></span></font></div>
<div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Times New Roman,serif" size="3"><span style="font-size:12pt">&nbsp;</span></font></span></font></div>
<div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial Narrow,sans-serif" size="3"><span style="font-size:12pt">Phone&nbsp;number:&nbsp; 860-375-2006</span></font></span></font></div>
<div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial Narrow,sans-serif" size="3"><span style="font-size:12pt">&nbsp;</span></font></span></font></div>
<div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><a href="http://www.accu-time.com/" target="_blank"><font face="Arial Narrow,sans-serif" size="3"><span style="font-size:12pt">www.accu-time.com</span></font></a></span></font></div>
<div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt">&nbsp;</span></font></div>
<div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><img alt="ATS_logo_signature" border="0" height="73" width="112"></span></font></div>
</span></div>
</div>
</div>
</body>
</html>