[U-Boot] strtonum() is gawk specific extension

Simon Glass sjg at chromium.org
Wed Jun 18 08:10:52 CEST 2014


Hi,

On 15 June 2014 06:56, Vasili Galka <vvv444 at gmail.com> wrote:
> The following patch "Check that u-boot.bin size looks correct":
> http://patchwork.ozlabs.org/patch/355151/
> Uses strtonum() function which is gawk specific extension:
> https://www.gnu.org/software/gawk/manual/html_node/Strtonum-Function.html
>
> As a result, currenlty, u-boot/master generates build errors on systems
> with alternative awk implementations e.g. I get:
>
> awk: line 2: function strtonum never defined
>
> Either gawk shall be required and explicitly used or the
> implementation changed.

I thought of an ugly way and sent a patch using bc, but please let me
know if you have something better.

Regards,
Simon


More information about the U-Boot mailing list