powerpc: Simplify symbol check in prom_init_check.sh

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
Andreas Schwab 2014-09-13 10:20:17 +02:00 committed by Michael Ellerman
parent ce6d73c94d
commit fe921c8c39
1 changed files with 6 additions and 16 deletions

View File

@ -50,24 +50,14 @@ do
done
# ignore register save/restore funcitons
if [ "${UNDEF:0:9}" = "_restgpr_" ]; then
case $UNDEF in
_restgpr_*|_restgpr0_*|_rest32gpr_*)
OK=1
fi
if [ "${UNDEF:0:10}" = "_restgpr0_" ]; then
;;
_savegpr_*|_savegpr0_*|_save32gpr_*)
OK=1
fi
if [ "${UNDEF:0:11}" = "_rest32gpr_" ]; then
OK=1
fi
if [ "${UNDEF:0:9}" = "_savegpr_" ]; then
OK=1
fi
if [ "${UNDEF:0:10}" = "_savegpr0_" ]; then
OK=1
fi
if [ "${UNDEF:0:11}" = "_save32gpr_" ]; then
OK=1
fi
;;
esac
if [ $OK -eq 0 ]; then
ERROR=1