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 armeb-user sparc-user ppc-user ppc-softmmu sparc-softmmu" |
target_list="i386-user i386 i386-softmmu arm-user armeb-user sparc-user ppc-user ppc-softmmu sparc-softmmu x86_64-softmmu" |
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" |
63 |
cpu="m68k" |
cpu="m68k" |
64 |
;; |
;; |
65 |
x86_64|amd64) |
x86_64|amd64) |
66 |
cpu="amd64" |
cpu="x86_64" |
67 |
;; |
;; |
68 |
*) |
*) |
69 |
cpu="unknown" |
cpu="unknown" |
383 |
if test "$cpu" = "i386" ; then |
if test "$cpu" = "i386" ; then |
384 |
echo "ARCH=i386" >> $config_mak |
echo "ARCH=i386" >> $config_mak |
385 |
echo "#define HOST_I386 1" >> $config_h |
echo "#define HOST_I386 1" >> $config_h |
386 |
elif test "$cpu" = "amd64" ; then |
elif test "$cpu" = "x86_64" ; then |
387 |
echo "ARCH=amd64" >> $config_mak |
echo "ARCH=x86_64" >> $config_mak |
388 |
echo "#define HOST_AMD64 1" >> $config_h |
echo "#define HOST_X86_64 1" >> $config_h |
389 |
elif test "$cpu" = "armv4b" ; then |
elif test "$cpu" = "armv4b" ; then |
390 |
echo "ARCH=arm" >> $config_mak |
echo "ARCH=arm" >> $config_mak |
391 |
echo "#define HOST_ARM 1" >> $config_h |
echo "#define HOST_ARM 1" >> $config_h |
538 |
echo "TARGET_ARCH=ppc" >> $config_mak |
echo "TARGET_ARCH=ppc" >> $config_mak |
539 |
echo "#define TARGET_ARCH \"ppc\"" >> $config_h |
echo "#define TARGET_ARCH \"ppc\"" >> $config_h |
540 |
echo "#define TARGET_PPC 1" >> $config_h |
echo "#define TARGET_PPC 1" >> $config_h |
541 |
|
elif test "$target_cpu" = "x86_64" ; then |
542 |
|
echo "TARGET_ARCH=x86_64" >> $config_mak |
543 |
|
echo "#define TARGET_ARCH \"x86_64\"" >> $config_h |
544 |
|
echo "#define TARGET_I386 1" >> $config_h |
545 |
|
echo "#define TARGET_X86_64 1" >> $config_h |
546 |
else |
else |
547 |
echo "Unsupported target CPU" |
echo "Unsupported target CPU" |
548 |
exit 1 |
exit 1 |