Re: [yocto] Bitwise Operations in BBClass

2017-10-31 Thread Burton, Ross
Two options: 1) fix the bug 2) write the logic in a Python function On 31 October 2017 at 11:38, Ayoub Zaki wrote: > Hi, > > > On 31.10.2017 12:34, Burton, Ross wrote: > >> That would be https://bugzilla.yoctoproject.org/show_bug.cgi?id=11314, >> $(( isn't supported by our shell parser. Shouldn

Re: [yocto] Bitwise Operations in BBClass

2017-10-31 Thread Ayoub Zaki
Hi, On 31.10.2017 12:34, Burton, Ross wrote: That would be https://bugzilla.yoctoproject.org/show_bug.cgi?id=11314, $(( isn't supported by our shell parser. Shouldn't be that difficult to fix in bitbake. Any workarrounds for that problem ? I tried with expr but it does not recognize bitwise

Re: [yocto] Bitwise Operations in BBClass

2017-10-31 Thread Burton, Ross
That would be https://bugzilla.yoctoproject.org/show_bug.cgi?id=11314, $(( isn't supported by our shell parser. Shouldn't be that difficult to fix in bitbake. Ross On 31 October 2017 at 11:27, Ayoub Zaki wrote: > Hello, > > I'm trying to get a bitwise operation working in a bitbake bblcass > fu

[yocto] Bitwise Operations in BBClass

2017-10-31 Thread Ayoub Zaki
Hello, I'm trying to get a bitwise operation working in a bitbake bblcass function but no luck so far : my_function() {     SZ="`wc -c < ${1}`"     ALIGN_SZ=$(((${SZ} + 0x1000 - 1) & ~ (0x1000 - 1)))     ... } Bitbake complains with : ERROR: ExpansionError during parsing /opt/Projec