213 |
|
|
214 |
if test -z "$target_list" ; then |
if test -z "$target_list" ; then |
215 |
# these targets are portable |
# these targets are portable |
216 |
target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu" |
target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu" |
217 |
# the following are Linux specific |
# the following are Linux specific |
218 |
if [ "$linux" = "yes" ] ; then |
if [ "$linux" = "yes" ] ; then |
219 |
target_list="i386-user arm-user armeb-user sparc-user ppc-user $target_list" |
target_list="i386-user arm-user armeb-user sparc-user ppc-user $target_list" |
607 |
[ "$target_cpu" = "sparc" ] && target_bigendian=yes |
[ "$target_cpu" = "sparc" ] && target_bigendian=yes |
608 |
[ "$target_cpu" = "sparc64" ] && target_bigendian=yes |
[ "$target_cpu" = "sparc64" ] && target_bigendian=yes |
609 |
[ "$target_cpu" = "ppc" ] && target_bigendian=yes |
[ "$target_cpu" = "ppc" ] && target_bigendian=yes |
610 |
|
[ "$target_cpu" = "mips" ] && target_bigendian=yes |
611 |
target_softmmu="no" |
target_softmmu="no" |
612 |
if expr $target : '.*-softmmu' > /dev/null ; then |
if expr $target : '.*-softmmu' > /dev/null ; then |
613 |
target_softmmu="yes" |
target_softmmu="yes" |
680 |
if test $kqemu = "yes" -a "$target_softmmu" = "yes" -a $cpu = "x86_64" ; then |
if test $kqemu = "yes" -a "$target_softmmu" = "yes" -a $cpu = "x86_64" ; then |
681 |
echo "#define USE_KQEMU 1" >> $config_h |
echo "#define USE_KQEMU 1" >> $config_h |
682 |
fi |
fi |
683 |
|
elif test "$target_cpu" = "mips" ; then |
684 |
|
echo "TARGET_ARCH=mips" >> $config_mak |
685 |
|
echo "#define TARGET_ARCH \"mips\"" >> $config_h |
686 |
|
echo "#define TARGET_MIPS 1" >> $config_h |
687 |
else |
else |
688 |
echo "Unsupported target CPU" |
echo "Unsupported target CPU" |
689 |
exit 1 |
exit 1 |