<div dir="ltr">That would be <a href="https://bugzilla.yoctoproject.org/show_bug.cgi?id=11314">https://bugzilla.yoctoproject.org/show_bug.cgi?id=11314</a>, $(( isn't supported by our shell parser. Shouldn't be that difficult to fix in bitbake.<div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 31 October 2017 at 11:27, Ayoub Zaki <span dir="ltr"><<a href="mailto:ayoub.zaki@embexus.com" target="_blank">ayoub.zaki@embexus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I'm trying to get a bitwise operation working in a bitbake bblcass function but no luck so far :<br>
<br>
my_function() {<br>
<br>
   SZ="`wc -c < ${1}`"<br>
<br>
   ALIGN_SZ=$(((${SZ} + 0x1000 - 1) & ~ (0x1000 - 1)))<br>
<br>
   .......<br>
<br>
}<br>
<br>
Bitbake complains with :<br>
<br>
ERROR: ExpansionError during parsing /opt/Projects/Yocto/meta-somel<wbr>ayer/recipes-kernel/linux/<a href="http://linux-imx_4.1.15.bb" rel="noreferrer" target="_blank">linu<wbr>x-imx_4.1.15.bb</a>: Failure expanding variable my_function: NotImplementedError: $((<br>
<br>
<br>
Any suggestions how to tackle this problem ?<br>
<br>
Thank you !<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Ayoub Zaki<br>
Embedded Systems Consultant<br>
<br>
<a href="https://maps.google.com/?q=Vaihinger+Stra%C3%9Fe+2/1&entry=gmail&source=g">Vaihinger Straße 2/1</a><br>
D-71634 Ludwigsburg<br>
<br>
Tel.   : <a href="tel:%2B4971415074546" value="+4971415074546" target="_blank">+4971415074546</a><br>
Mobile  : <a href="tel:%2B4917662901545" value="+4917662901545" target="_blank">+4917662901545</a><br>
Email  : <a href="mailto:ayoub.zaki@embexus.com" target="_blank">ayoub.zaki@embexus.com</a><br>
Homepage : <a href="https://embexus.com" rel="noreferrer" target="_blank">https://embexus.com</a><br>
VAT No. : DE313902634<br>
<br>
-- <br>
______________________________<wbr>_________________<br>
yocto mailing list<br>
<a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a><br>
<a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank">https://lists.yoctoproject.org<wbr>/listinfo/yocto</a><br>
</font></span></blockquote></div><br></div>