| 27 |
make="make" |
make="make" |
| 28 |
strip="strip" |
strip="strip" |
| 29 |
cpu=`uname -m` |
cpu=`uname -m` |
| 30 |
target_list="i386-user i386 i386-softmmu arm-user sparc-user" |
target_list="i386-user i386 i386-softmmu arm-user sparc-user ppc-user" |
| 31 |
case "$cpu" in |
case "$cpu" in |
| 32 |
i386|i486|i586|i686|i86pc|BePC) |
i386|i486|i586|i686|i86pc|BePC) |
| 33 |
cpu="i386" |
cpu="i386" |
| 322 |
target_cpu=`echo $target | cut -d '-' -f 1` |
target_cpu=`echo $target | cut -d '-' -f 1` |
| 323 |
target_bigendian="no" |
target_bigendian="no" |
| 324 |
[ "$target_cpu" = "sparc" ] && target_bigendian=yes |
[ "$target_cpu" = "sparc" ] && target_bigendian=yes |
| 325 |
|
[ "$target_cpu" = "ppc" ] && target_bigendian=yes |
| 326 |
target_softmmu="no" |
target_softmmu="no" |
| 327 |
if expr $target : '.*-softmmu' > /dev/null ; then |
if expr $target : '.*-softmmu' > /dev/null ; then |
| 328 |
target_softmmu="yes" |
target_softmmu="yes" |
| 359 |
echo "TARGET_ARCH=sparc" >> $config_mak |
echo "TARGET_ARCH=sparc" >> $config_mak |
| 360 |
echo "#define TARGET_ARCH \"sparc\"" >> $config_h |
echo "#define TARGET_ARCH \"sparc\"" >> $config_h |
| 361 |
echo "#define TARGET_SPARC 1" >> $config_h |
echo "#define TARGET_SPARC 1" >> $config_h |
| 362 |
|
elif test "$target_cpu" = "ppc" ; then |
| 363 |
|
echo "TARGET_ARCH=ppc" >> $config_mak |
| 364 |
|
echo "#define TARGET_ARCH \"ppc\"" >> $config_h |
| 365 |
|
echo "#define TARGET_PPC 1" >> $config_h |
| 366 |
else |
else |
| 367 |
echo "Unsupported target CPU" |
echo "Unsupported target CPU" |
| 368 |
exit 1 |
exit 1 |