]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit83547a658270f2732f336d6d4b1f053453fd760f
treef246ba6d7b2c23b2c5eb141f2a544feaee0add55
parent80f403b29e0f92549945dd01999bb487f0189767
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