800 | | elif test "$cpu" = "armv4b" ; then |
801 | | echo "ARCH=arm" >> $config_mak |
802 | | echo "#define HOST_ARM 1" >> $config_h |
803 | | elif test "$cpu" = "armv4l" ; then |
804 | | echo "ARCH=arm" >> $config_mak |
805 | | echo "#define HOST_ARM 1" >> $config_h |
806 | | elif test "$cpu" = "powerpc" ; then |
807 | | echo "ARCH=ppc" >> $config_mak |
808 | | echo "#define HOST_PPC 1" >> $config_h |
809 | | elif test "$cpu" = "mips" ; then |
810 | | echo "ARCH=mips" >> $config_mak |
811 | | echo "#define HOST_MIPS 1" >> $config_h |
812 | | elif test "$cpu" = "mips64" ; then |
813 | | echo "ARCH=mips64" >> $config_mak |
814 | | echo "#define HOST_MIPS64 1" >> $config_h |
815 | | elif test "$cpu" = "cris" ; then |
816 | | echo "ARCH=cris" >> $config_mak |
817 | | echo "#define HOST_CRIS 1" >> $config_h |
818 | | elif test "$cpu" = "s390" ; then |
819 | | echo "ARCH=s390" >> $config_mak |
820 | | echo "#define HOST_S390 1" >> $config_h |
821 | | elif test "$cpu" = "alpha" ; then |
822 | | echo "ARCH=alpha" >> $config_mak |
823 | | echo "#define HOST_ALPHA 1" >> $config_h |
824 | | elif test "$cpu" = "sparc" ; then |
825 | | echo "ARCH=sparc" >> $config_mak |
826 | | echo "#define HOST_SPARC 1" >> $config_h |
827 | | elif test "$cpu" = "sparc64" ; then |
828 | | echo "ARCH=sparc64" >> $config_mak |
829 | | echo "#define HOST_SPARC64 1" >> $config_h |
830 | | elif test "$cpu" = "ia64" ; then |
831 | | echo "ARCH=ia64" >> $config_mak |
832 | | echo "#define HOST_IA64 1" >> $config_h |
833 | | elif test "$cpu" = "m68k" ; then |
834 | | echo "ARCH=m68k" >> $config_mak |
835 | | echo "#define HOST_M68K 1" >> $config_h |
1064 | | elif test "$target_cpu" = "arm" -o "$target_cpu" = "armeb" ; then |
1065 | | echo "TARGET_ARCH=arm" >> $config_mak |
1066 | | echo "#define TARGET_ARCH \"arm\"" >> $config_h |
1067 | | echo "#define TARGET_ARM 1" >> $config_h |
1068 | | bflt="yes" |
1069 | | elif test "$target_cpu" = "sparc" ; then |
1070 | | echo "TARGET_ARCH=sparc" >> $config_mak |
1071 | | echo "#define TARGET_ARCH \"sparc\"" >> $config_h |
1072 | | echo "#define TARGET_SPARC 1" >> $config_h |
1073 | | elif test "$target_cpu" = "sparc64" ; then |
1074 | | echo "TARGET_ARCH=sparc64" >> $config_mak |
1075 | | echo "#define TARGET_ARCH \"sparc64\"" >> $config_h |
1076 | | echo "#define TARGET_SPARC 1" >> $config_h |
1077 | | echo "#define TARGET_SPARC64 1" >> $config_h |
1078 | | elfload32="yes" |
1079 | | elif test "$target_cpu" = "sparc32plus" ; then |
1080 | | echo "TARGET_ARCH=sparc64" >> $config_mak |
1081 | | echo "TARGET_ABI_DIR=sparc" >> $config_mak |
1082 | | echo "TARGET_ARCH2=sparc32plus" >> $config_mak |
1083 | | echo "#define TARGET_ARCH \"sparc64\"" >> $config_h |
1084 | | echo "#define TARGET_SPARC 1" >> $config_h |
1085 | | echo "#define TARGET_SPARC64 1" >> $config_h |
1086 | | echo "#define TARGET_ABI32 1" >> $config_h |
1087 | | elif test "$target_cpu" = "ppc" ; then |
1088 | | echo "TARGET_ARCH=ppc" >> $config_mak |
1089 | | echo "#define TARGET_ARCH \"ppc\"" >> $config_h |
1090 | | echo "#define TARGET_PPC 1" >> $config_h |
1091 | | elif test "$target_cpu" = "ppcemb" ; then |
1092 | | echo "TARGET_ARCH=ppcemb" >> $config_mak |
1093 | | echo "TARGET_ABI_DIR=ppc" >> $config_mak |
1094 | | echo "#define TARGET_ARCH \"ppcemb\"" >> $config_h |
1095 | | echo "#define TARGET_PPC 1" >> $config_h |
1096 | | echo "#define TARGET_PPCEMB 1" >> $config_h |
1097 | | elif test "$target_cpu" = "ppc64" ; then |
1098 | | echo "TARGET_ARCH=ppc64" >> $config_mak |
1099 | | echo "TARGET_ABI_DIR=ppc" >> $config_mak |
1100 | | echo "#define TARGET_ARCH \"ppc64\"" >> $config_h |
1101 | | echo "#define TARGET_PPC 1" >> $config_h |
1102 | | echo "#define TARGET_PPC64 1" >> $config_h |
1103 | | elif test "$target_cpu" = "ppc64abi32" ; then |
1104 | | echo "TARGET_ARCH=ppc64" >> $config_mak |
1105 | | echo "TARGET_ABI_DIR=ppc" >> $config_mak |
1106 | | echo "TARGET_ARCH2=ppc64abi32" >> $config_mak |
1107 | | echo "#define TARGET_ARCH \"ppc64\"" >> $config_h |
1108 | | echo "#define TARGET_PPC 1" >> $config_h |
1109 | | echo "#define TARGET_PPC64 1" >> $config_h |
1110 | | echo "#define TARGET_ABI32 1" >> $config_h |
1119 | | elif test "$target_cpu" = "mips" -o "$target_cpu" = "mipsel" ; then |
1120 | | echo "TARGET_ARCH=mips" >> $config_mak |
1121 | | echo "#define TARGET_ARCH \"mips\"" >> $config_h |
1122 | | echo "#define TARGET_MIPS 1" >> $config_h |
1123 | | echo "#define TARGET_ABI_MIPSO32 1" >> $config_h |
1124 | | elif test "$target_cpu" = "mipsn32" -o "$target_cpu" = "mipsn32el" ; then |
1125 | | echo "TARGET_ARCH=mipsn32" >> $config_mak |
1126 | | echo "#define TARGET_ARCH \"mipsn32\"" >> $config_h |
1127 | | echo "#define TARGET_MIPS 1" >> $config_h |
1128 | | echo "#define TARGET_ABI_MIPSN32 1" >> $config_h |
1129 | | elif test "$target_cpu" = "mips64" -o "$target_cpu" = "mips64el" ; then |
1130 | | echo "TARGET_ARCH=mips64" >> $config_mak |
1131 | | echo "#define TARGET_ARCH \"mips64\"" >> $config_h |
1132 | | echo "#define TARGET_MIPS 1" >> $config_h |
1133 | | echo "#define TARGET_MIPS64 1" >> $config_h |
1134 | | echo "#define TARGET_ABI_MIPSN64 1" >> $config_h |
1135 | | elif test "$target_cpu" = "cris" ; then |
1136 | | echo "TARGET_ARCH=cris" >> $config_mak |
1137 | | echo "#define TARGET_ARCH \"cris\"" >> $config_h |
1138 | | echo "#define TARGET_CRIS 1" >> $config_h |
1139 | | echo "CONFIG_SOFTFLOAT=yes" >> $config_mak |
1140 | | echo "#define CONFIG_SOFTFLOAT 1" >> $config_h |
1141 | | elif test "$target_cpu" = "sh4" -o "$target_cpu" = "sh4eb" ; then |
1142 | | echo "TARGET_ARCH=sh4" >> $config_mak |
1143 | | echo "#define TARGET_ARCH \"sh4\"" >> $config_h |
1144 | | echo "#define TARGET_SH4 1" >> $config_h |
1145 | | bflt="yes" |
1146 | | elif test "$target_cpu" = "m68k" ; then |
1147 | | echo "TARGET_ARCH=m68k" >> $config_mak |
1148 | | echo "#define TARGET_ARCH \"m68k\"" >> $config_h |
1149 | | echo "#define TARGET_M68K 1" >> $config_h |
1150 | | bflt="yes" |
1151 | | elif test "$target_cpu" = "alpha" ; then |
1152 | | echo "TARGET_ARCH=alpha" >> $config_mak |
1153 | | echo "#define TARGET_ARCH \"alpha\"" >> $config_h |
1154 | | echo "#define TARGET_ALPHA 1" >> $config_h |