<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 27, 2016 at 12:32 AM, 张忠山 <span dir="ltr"><<a href="mailto:zzs213@126.com" target="_blank">zzs213@126.com</a>></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> <<a href="http://test.bb" rel="noreferrer" target="_blank">http://test.bb</a>>:<span class=""><br>
<br>
NAME_1.1.7 = 'version is 1.1.7'<br>
NAME_develop = 'version is develop'<br>
<br>
Use 'bitbake test -e' to observe 'NAME':<br>
#<br>
# $NAME [2 operations]<br></span>
# override[develop]:set .../<a href="http://test.bb:10" rel="noreferrer" target="_blank">test.bb:10</a> <<a href="http://test.bb:10" rel="noreferrer" target="_blank">http://test.bb:10</a>><span class=""><br>
# "version is develop"<br>
# pre-expansion value:<br>
# "version is develop"<br>
NAME="version is develop"<br>
<br>
Obviously, override for '1.1.7' 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 '/' in override like 'virtual/kernel'. Why we can't use dot in override.<br>
<br>
And bitbkae would add 'PV'(which default to '1.0' in OE) to 'OVERRIDES'. 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'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 .= ":pv-${@'${PV}'.replace('.', '_')}"</div><div class="gmail_extra">FOO_pv-1_1_7 = "bar"</div><div class="gmail_extra"><br></div><div class="gmail_extra">It's worth noting that you'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>