]> git.karo-electronics.de Git - karo-tx-linux.git/commit
h8300/boot: Use POSIX "$((..))" instead of bashism "$[...]"
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 9 Jun 2013 08:07:45 +0000 (10:07 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 18 Jun 2013 16:41:56 +0000 (18:41 +0200)
commit0eaa0d97d95084df121a6034d4f4cc64071d669b
tree780812a57f40489e04e122a2367f177aecdd2215
parentd48c8553d19623b32e4eb2c93bb902cd801e68b0
h8300/boot: Use POSIX "$((..))" instead of bashism "$[...]"

On Ubuntu, where /bin/sh -> dash, "make ARCH=h8300 clean" gives:

printf: 1: $[0x00400000+0x00140000]: expected numeric value

Replace the bash-specific "$[...]" by POSIX "$((..))" for arithmetic
expansion to fix this.
Note that according to the bash 4.1 manpage, "$[...]" is deprecated, and
will be removed in upcoming versions of bash.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/h8300/boot/compressed/Makefile