xtensa: use "test -e" instead of bashism "test -a"
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 20 Jun 2012 19:52:59 +0000 (12:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 20 Jun 2012 21:39:35 +0000 (14:39 -0700)
commit0eff08b5d1bf4b30f1a549a58c85806748256b18
treef246ba6d7b2c23b2c5eb141f2a544feaee0add55
parent5e7b6ed8e9bf3c8e3bb579fd0aec64f6526f8c81
xtensa: use "test -e" instead of bashism "test -a"

On Ubuntu, /bin/sh is a symlink to dash, which does not support "test -a".
This causes messages like

    test: 1: -a: unexpected operator
    test: 1: -a: unexpected operator

and link failures like

    (.init.text+0x132): undefined reference to `platform_init'

due to the appropriate platform code not being compiled.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Chris Zankel <chris@zankel.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/xtensa/Makefile