Commit 2da5ba70 authored by unknown's avatar unknown
Browse files

Fix BUILD/check-cpu for powerpc


BUILD/check-cpu:
  fix for powerpc linux
parent bfac8534
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ if test -r /proc/cpuinfo ; then
  fi

  # parse CPU flags
  for flag in `$cpuinfo | grep 'flags' | sed -e 's/^flags.*: //'`; do 
  for flag in `$cpuinfo | grep '^flags' | sed -e 's/^flags.*: //'`; do 
	eval cpu_flag_$flag=yes
  done
else
@@ -52,7 +52,6 @@ fi
# detect CPU shortname as used by gcc options 
# this list is not complete, feel free to add further entries
cpu_arg=""

case "$cpu_family--$model_name" in
  # DEC Alpha
  Alpha*EV6*)
@@ -99,8 +98,12 @@ case "$cpu_family--$model_name" in
    ;;

  #
  *ppc*)
    cpu_arg='powerpc'
    ;;
 
  *powerpc*)
    cpu_arg=`echo $model_name | sed -e"s/ppc//g"`
    cpu_arg='powerpc'
    ;;

  # unknown