<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 27, 2016 at 12:32 AM, 张忠山 <span dir="ltr">&lt;<a href="mailto:zzs213@126.com" target="_blank">zzs213@126.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Without this patch, if we write these in recipe <a href="http://test.bb" rel="noreferrer" target="_blank">test.bb</a> &lt;<a href="http://test.bb" rel="noreferrer" target="_blank">http://test.bb</a>&gt;:<span class=""><br>
<br>
        NAME_1.1.7   = &#39;version is 1.1.7&#39;<br>
        NAME_develop = &#39;version is develop&#39;<br>
<br>
Use &#39;bitbake test -e&#39; to observe &#39;NAME&#39;:<br>
        #<br>
        # $NAME [2 operations]<br></span>
        #   override[develop]:set .../<a href="http://test.bb:10" rel="noreferrer" target="_blank">test.bb:10</a> &lt;<a href="http://test.bb:10" rel="noreferrer" target="_blank">http://test.bb:10</a>&gt;<span class=""><br>
        #     &quot;version is develop&quot;<br>
        # pre-expansion value:<br>
        #   &quot;version is develop&quot;<br>
        NAME=&quot;version is develop&quot;<br>
<br>
Obviously, override for &#39;1.1.7&#39; missing.<br>
</span></blockquote><span class="">
<br>
Dot is not allowed in variable names intentionally since its file<br>
extension separator. I am not sure if its a good idea to allow it in<br>
variable names<br>
</span></blockquote>
<br>
Since we can use the path delimeter &#39;/&#39; in override like &#39;virtual/kernel&#39;. Why we can&#39;t use dot in override.<br>
<br>
And bitbkae would add &#39;PV&#39;(which default to &#39;1.0&#39; in OE) to &#39;OVERRIDES&#39;. So using dot in override may not be an issue.<br>
<br>
In bitbake manual, It said we can use BBVERSIONS and override to let sigle recipe support multiple package version<br>
<br>
If we can&#39;t use dot in override, Howto use BBVERSIONS? Use embedded python code to set var according version? But it is ugly tahn using override!</blockquote></div><br>OVERRIDES .= &quot;:pv-${@&#39;${PV}&#39;.replace(&#39;.&#39;, &#39;_&#39;)}&quot;</div><div class="gmail_extra">FOO_pv-1_1_7 = &quot;bar&quot;</div><div class="gmail_extra"><br></div><div class="gmail_extra">It&#39;s worth noting that you&#39;re likely the first person to try using it since I added the feature. oe-core moved to a policy where only one version of a given recipe is kept in most cases, making it less useful.<br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>