<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 22, 2013 at 1:24 PM, Peter Seebach <span dir="ltr">&lt;<a href="mailto:peter.seebach@windriver.com" target="_blank">peter.seebach@windriver.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1wy">PREFIX = &quot;${@[&#39;&#39;, (d.getVar(&quot;BBEXTENDVARIANT&quot;, True) or &quot;&quot;) +<br>
&#39;-&#39;][(d.getVar(&quot;BBEXTENDVARIANT&quot;, True) or &quot;&quot;) != &quot;&quot;]}&quot;<br>
<br>
and then use ${PREFIX}${FOO}.<br>
<br>
... wait, that&#39;s horrible. What if I could write:<br>
        @{BBEXTENDVARIANT+@{BBEXTENDVARIANT}-}<br>
instead? That&#39;s practically legible by comparison. Or, with the new<br>
bonus features,</div></blockquote></div><div class="gmail_extra"><br></div><div class="gmail_extra" style>BBEXTENDVARIANT ??= &quot;&quot;</div>PREFIX = &quot;${@BBEXTENDVARIANT + &#39;-&#39; if BBEXTENDVARIANT else &#39;&#39;}&quot;<br>

</div><div class="gmail_extra"><br></div><div class="gmail_extra">Which leverages the python inline if statement syntax, coupled with the bitbake feature which allows you to reference variables as though they were python variables.<br>

-- <br>Christopher Larson</div></div>