[yocto] Bitwise Operations in BBClass

Burton, Ross ross.burton at intel.com
Tue Oct 31 04:34:02 PDT 2017


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 <ayoub.zaki at embexus.com> wrote:

> 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/Projects/Yocto/meta-somel
> ayer/recipes-kernel/linux/linux-imx_4.1.15.bb: Failure expanding variable
> my_function: NotImplementedError: $((
>
>
> Any suggestions how to tackle this problem ?
>
> Thank you !
>
> --
> Ayoub Zaki
> Embedded Systems Consultant
>
> Vaihinger Straße 2/1
> <https://maps.google.com/?q=Vaihinger+Stra%C3%9Fe+2/1&entry=gmail&source=g>
> D-71634 Ludwigsburg
>
> Tel.     : +4971415074546
> Mobile   : +4917662901545
> Email    : ayoub.zaki at embexus.com
> Homepage : https://embexus.com
> VAT No.  : DE313902634
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20171031/d2bd4d13/attachment.html>


More information about the yocto mailing list