
Dear Fabio,
In message CAOMZO5CnnmJrc9Y_9LQpxQYWQNcGeTUw=vgPtSpdmEPwavhU6g@mail.gmail.com you wrote:
/bin/sh: 1: arithmetic expression: expecting primary: ""(1 * 1024)""
D*mn. I really thought I had tried this in a dash based environment, too. Sorry for causing such confusion.
SHELL = /bin/bash"
Yes, if this is really a bash only feature that would be an easy way to fix it.
And by forcing the SHELL variable to bash, then your patch works fine here:
Yes, this would work - but I'm not sure if everybody would appreciate such a change?
This should also work - replace the line
@(echo $$(($(CONFIG_BOARD_SIZE_LIMIT))); wc -c $@ ) | \
by
@(awk "END { print $$(echo $(CONFIG_BOARD_SIZE_LIMIT)) }" /dev/null; wc -c $@ ) | \
Can you please try this out?
Best regards,
Wolfgang Denk