Thomas Petazzoni | 79ee3c1 | 2012-11-03 08:27:59 +0000 | [diff] [blame] | 1 | # i386/x86_64 cpu features |
| 2 | config BR2_X86_CPU_HAS_MMX |
| 3 | bool |
| 4 | config BR2_X86_CPU_HAS_SSE |
| 5 | bool |
| 6 | config BR2_X86_CPU_HAS_SSE2 |
| 7 | bool |
| 8 | config BR2_X86_CPU_HAS_SSE3 |
| 9 | bool |
| 10 | config BR2_X86_CPU_HAS_SSSE3 |
| 11 | bool |
Bernd Kuhls | 0e8e3c2 | 2014-01-02 18:59:45 +0100 | [diff] [blame] | 12 | config BR2_X86_CPU_HAS_SSE4 |
| 13 | bool |
| 14 | config BR2_X86_CPU_HAS_SSE42 |
| 15 | bool |
Thomas Petazzoni | 79ee3c1 | 2012-11-03 08:27:59 +0000 | [diff] [blame] | 16 | |
| 17 | choice |
| 18 | prompt "Target Architecture Variant" |
| 19 | depends on BR2_i386 || BR2_x86_64 |
| 20 | default BR2_x86_i586 if BR2_i386 |
| 21 | default BR2_x86_generic if BR2_x86_64 |
| 22 | help |
| 23 | Specific CPU variant to use |
| 24 | |
| 25 | config BR2_x86_generic |
| 26 | bool "generic" |
| 27 | config BR2_x86_i386 |
| 28 | bool "i386" |
| 29 | depends on !BR2_x86_64 |
| 30 | config BR2_x86_i486 |
| 31 | bool "i486" |
| 32 | depends on !BR2_x86_64 |
| 33 | config BR2_x86_i586 |
| 34 | bool "i586" |
| 35 | depends on !BR2_x86_64 |
| 36 | config BR2_x86_i686 |
| 37 | bool "i686" |
| 38 | depends on !BR2_x86_64 |
| 39 | config BR2_x86_pentiumpro |
| 40 | bool "pentium pro" |
| 41 | depends on !BR2_x86_64 |
| 42 | config BR2_x86_pentium_mmx |
| 43 | bool "pentium MMX" |
| 44 | select BR2_X86_CPU_HAS_MMX |
| 45 | depends on !BR2_x86_64 |
| 46 | config BR2_x86_pentium_m |
| 47 | bool "pentium mobile" |
| 48 | select BR2_X86_CPU_HAS_MMX |
| 49 | select BR2_X86_CPU_HAS_SSE |
| 50 | depends on !BR2_x86_64 |
| 51 | config BR2_x86_pentium2 |
| 52 | bool "pentium2" |
| 53 | select BR2_X86_CPU_HAS_MMX |
| 54 | depends on !BR2_x86_64 |
| 55 | config BR2_x86_pentium3 |
| 56 | bool "pentium3" |
| 57 | select BR2_X86_CPU_HAS_MMX |
| 58 | select BR2_X86_CPU_HAS_SSE |
| 59 | depends on !BR2_x86_64 |
| 60 | config BR2_x86_pentium4 |
| 61 | bool "pentium4" |
| 62 | select BR2_X86_CPU_HAS_MMX |
| 63 | select BR2_X86_CPU_HAS_SSE |
| 64 | select BR2_X86_CPU_HAS_SSE2 |
| 65 | depends on !BR2_x86_64 |
| 66 | config BR2_x86_prescott |
| 67 | bool "prescott" |
| 68 | select BR2_X86_CPU_HAS_MMX |
| 69 | select BR2_X86_CPU_HAS_SSE |
| 70 | select BR2_X86_CPU_HAS_SSE2 |
| 71 | select BR2_X86_CPU_HAS_SSE3 |
| 72 | depends on !BR2_x86_64 |
| 73 | config BR2_x86_nocona |
| 74 | bool "nocona" |
| 75 | select BR2_X86_CPU_HAS_MMX |
| 76 | select BR2_X86_CPU_HAS_SSE |
| 77 | select BR2_X86_CPU_HAS_SSE2 |
| 78 | select BR2_X86_CPU_HAS_SSE3 |
| 79 | config BR2_x86_core2 |
| 80 | bool "core2" |
| 81 | select BR2_X86_CPU_HAS_MMX |
| 82 | select BR2_X86_CPU_HAS_SSE |
| 83 | select BR2_X86_CPU_HAS_SSE2 |
| 84 | select BR2_X86_CPU_HAS_SSE3 |
| 85 | select BR2_X86_CPU_HAS_SSSE3 |
Bernd Kuhls | affb6a3 | 2014-04-27 13:29:15 +0200 | [diff] [blame^] | 86 | config BR2_x86_corei7 |
| 87 | bool "corei7" |
| 88 | select BR2_X86_CPU_HAS_MMX |
| 89 | select BR2_X86_CPU_HAS_SSE |
| 90 | select BR2_X86_CPU_HAS_SSE2 |
| 91 | select BR2_X86_CPU_HAS_SSE3 |
| 92 | select BR2_X86_CPU_HAS_SSSE3 |
| 93 | select BR2_X86_CPU_HAS_SSE4 |
| 94 | select BR2_X86_CPU_HAS_SSE42 |
Thomas Petazzoni | 79ee3c1 | 2012-11-03 08:27:59 +0000 | [diff] [blame] | 95 | config BR2_x86_atom |
| 96 | bool "atom" |
| 97 | select BR2_X86_CPU_HAS_MMX |
| 98 | select BR2_X86_CPU_HAS_SSE |
| 99 | select BR2_X86_CPU_HAS_SSE2 |
| 100 | select BR2_X86_CPU_HAS_SSE3 |
| 101 | select BR2_X86_CPU_HAS_SSSE3 |
| 102 | config BR2_x86_k6 |
| 103 | bool "k6" |
| 104 | select BR2_X86_CPU_HAS_MMX |
| 105 | depends on !BR2_x86_64 |
| 106 | config BR2_x86_k6_2 |
| 107 | bool "k6-2" |
| 108 | select BR2_X86_CPU_HAS_MMX |
| 109 | depends on !BR2_x86_64 |
| 110 | config BR2_x86_athlon |
| 111 | bool "athlon" |
| 112 | select BR2_X86_CPU_HAS_MMX |
| 113 | depends on !BR2_x86_64 |
| 114 | config BR2_x86_athlon_4 |
| 115 | bool "athlon-4" |
| 116 | select BR2_X86_CPU_HAS_MMX |
| 117 | select BR2_X86_CPU_HAS_SSE |
| 118 | depends on !BR2_x86_64 |
| 119 | config BR2_x86_opteron |
| 120 | bool "opteron" |
| 121 | select BR2_X86_CPU_HAS_MMX |
| 122 | select BR2_X86_CPU_HAS_SSE |
| 123 | select BR2_X86_CPU_HAS_SSE2 |
| 124 | config BR2_x86_opteron_sse3 |
| 125 | bool "opteron w/ SSE3" |
| 126 | select BR2_X86_CPU_HAS_MMX |
| 127 | select BR2_X86_CPU_HAS_SSE |
| 128 | select BR2_X86_CPU_HAS_SSE2 |
| 129 | select BR2_X86_CPU_HAS_SSE3 |
| 130 | config BR2_x86_barcelona |
| 131 | bool "barcelona" |
| 132 | select BR2_X86_CPU_HAS_MMX |
| 133 | select BR2_X86_CPU_HAS_SSE |
| 134 | select BR2_X86_CPU_HAS_SSE2 |
| 135 | select BR2_X86_CPU_HAS_SSE3 |
Adrien Béraud | a20cb38 | 2014-01-15 17:17:10 -0500 | [diff] [blame] | 136 | config BR2_x86_jaguar |
| 137 | bool "jaguar" |
| 138 | select BR2_X86_CPU_HAS_MMX |
| 139 | select BR2_X86_CPU_HAS_SSE |
| 140 | select BR2_X86_CPU_HAS_SSE2 |
| 141 | select BR2_X86_CPU_HAS_SSE3 |
| 142 | select BR2_X86_CPU_HAS_SSSE3 |
Adrien Béraud | 485f07d | 2014-01-20 12:35:17 -0500 | [diff] [blame] | 143 | select BR2_X86_CPU_HAS_SSE4 |
| 144 | select BR2_X86_CPU_HAS_SSE42 |
Thomas Petazzoni | 79ee3c1 | 2012-11-03 08:27:59 +0000 | [diff] [blame] | 145 | config BR2_x86_geode |
| 146 | bool "geode" |
| 147 | # Don't include MMX support because there several variant of geode |
| 148 | # processor, some with MMX support, some without. |
| 149 | # See: http://en.wikipedia.org/wiki/Geode_%28processor%29 |
| 150 | depends on !BR2_x86_64 |
| 151 | config BR2_x86_c3 |
| 152 | bool "Via/Cyrix C3 (Samuel/Ezra cores)" |
| 153 | select BR2_X86_CPU_HAS_MMX |
| 154 | depends on !BR2_x86_64 |
| 155 | config BR2_x86_c32 |
| 156 | bool "Via C3-2 (Nehemiah cores)" |
| 157 | select BR2_X86_CPU_HAS_MMX |
| 158 | select BR2_X86_CPU_HAS_SSE |
| 159 | depends on !BR2_x86_64 |
| 160 | config BR2_x86_winchip_c6 |
| 161 | bool "IDT Winchip C6" |
| 162 | select BR2_X86_CPU_HAS_MMX |
| 163 | depends on !BR2_x86_64 |
| 164 | config BR2_x86_winchip2 |
| 165 | bool "IDT Winchip 2" |
| 166 | select BR2_X86_CPU_HAS_MMX |
| 167 | depends on !BR2_x86_64 |
| 168 | endchoice |
Thomas Petazzoni | 44c04a2 | 2012-11-15 03:53:48 +0000 | [diff] [blame] | 169 | |
| 170 | config BR2_ARCH |
| 171 | default "i386" if BR2_x86_i386 |
| 172 | default "i486" if BR2_x86_i486 |
| 173 | default "i586" if BR2_x86_i586 |
| 174 | default "i586" if BR2_x86_pentium_mmx |
| 175 | default "i586" if BR2_x86_geode |
| 176 | default "i586" if BR2_x86_c3 |
| 177 | default "i686" if BR2_x86_c32 |
| 178 | default "i586" if BR2_x86_winchip_c6 |
| 179 | default "i586" if BR2_x86_winchip2 |
| 180 | default "i686" if BR2_x86_i686 |
| 181 | default "i686" if BR2_x86_pentium2 |
| 182 | default "i686" if BR2_x86_pentium3 |
| 183 | default "i686" if BR2_x86_pentium4 |
| 184 | default "i686" if BR2_x86_pentium_m |
| 185 | default "i686" if BR2_x86_pentiumpro |
| 186 | default "i686" if BR2_x86_prescott |
| 187 | default "i686" if BR2_x86_nocona && BR2_i386 |
| 188 | default "i686" if BR2_x86_core2 && BR2_i386 |
Bernd Kuhls | affb6a3 | 2014-04-27 13:29:15 +0200 | [diff] [blame^] | 189 | default "i686" if BR2_x86_corei7 && BR2_i386 |
Thomas Petazzoni | 44c04a2 | 2012-11-15 03:53:48 +0000 | [diff] [blame] | 190 | default "i686" if BR2_x86_atom && BR2_i386 |
| 191 | default "i686" if BR2_x86_opteron && BR2_i386 |
| 192 | default "i686" if BR2_x86_opteron_sse3 && BR2_i386 |
| 193 | default "i686" if BR2_x86_barcelona && BR2_i386 |
Adrien Béraud | a20cb38 | 2014-01-15 17:17:10 -0500 | [diff] [blame] | 194 | default "i686" if BR2_x86_jaguar && BR2_i386 |
Thomas Petazzoni | 44c04a2 | 2012-11-15 03:53:48 +0000 | [diff] [blame] | 195 | default "i686" if BR2_x86_k6 |
| 196 | default "i686" if BR2_x86_k6_2 |
| 197 | default "i686" if BR2_x86_athlon |
| 198 | default "i686" if BR2_x86_athlon_4 |
| 199 | default "x86_64" if BR2_x86_64 |
Richard Braun | 2a27ad3 | 2012-12-20 03:41:52 +0000 | [diff] [blame] | 200 | default "i386" if BR2_x86_generic |
Thomas Petazzoni | 44c04a2 | 2012-11-15 03:53:48 +0000 | [diff] [blame] | 201 | |
| 202 | config BR2_ENDIAN |
| 203 | default "LITTLE" |
| 204 | |
| 205 | config BR2_GCC_TARGET_TUNE |
Thomas Petazzoni | 171075e | 2012-11-15 03:53:53 +0000 | [diff] [blame] | 206 | default "i386" if BR2_x86_i386 |
| 207 | default "i486" if BR2_x86_i486 |
| 208 | default "i586" if BR2_x86_i586 |
| 209 | default "pentium-mmx" if BR2_x86_pentium_mmx |
| 210 | default "i686" if BR2_x86_i686 |
| 211 | default "pentiumpro" if BR2_x86_pentiumpro |
| 212 | default "pentium-m" if BR2_x86_pentium_m |
| 213 | default "pentium2" if BR2_x86_pentium2 |
| 214 | default "pentium3" if BR2_x86_pentium3 |
| 215 | default "pentium4" if BR2_x86_pentium4 |
| 216 | default "prescott" if BR2_x86_prescott |
| 217 | default "nocona" if BR2_x86_nocona |
| 218 | default "core2" if BR2_x86_core2 |
Bernd Kuhls | affb6a3 | 2014-04-27 13:29:15 +0200 | [diff] [blame^] | 219 | default "corei7" if BR2_x86_corei7 |
Thomas Petazzoni | 171075e | 2012-11-15 03:53:53 +0000 | [diff] [blame] | 220 | default "atom" if BR2_x86_atom |
| 221 | default "k8" if BR2_x86_opteron |
| 222 | default "k8-sse3" if BR2_x86_opteron_sse3 |
| 223 | default "barcelona" if BR2_x86_barcelona |
Adrien Béraud | a20cb38 | 2014-01-15 17:17:10 -0500 | [diff] [blame] | 224 | default "btver2" if BR2_x86_jaguar |
Thomas Petazzoni | 171075e | 2012-11-15 03:53:53 +0000 | [diff] [blame] | 225 | default "k6" if BR2_x86_k6 |
| 226 | default "k6-2" if BR2_x86_k6_2 |
| 227 | default "athlon" if BR2_x86_athlon |
| 228 | default "athlon-4" if BR2_x86_athlon_4 |
| 229 | default "winchip-c6" if BR2_x86_winchip_c6 |
| 230 | default "winchip2" if BR2_x86_winchip2 |
| 231 | default "c3" if BR2_x86_c3 |
| 232 | default "c3-2" if BR2_x86_c32 |
| 233 | default "geode" if BR2_x86_geode |
| 234 | default "generic" if BR2_x86_generic |
Thomas Petazzoni | 44c04a2 | 2012-11-15 03:53:48 +0000 | [diff] [blame] | 235 | |
| 236 | config BR2_GCC_TARGET_ARCH |
Thomas Petazzoni | 171075e | 2012-11-15 03:53:53 +0000 | [diff] [blame] | 237 | default "i386" if BR2_x86_i386 |
| 238 | default "i486" if BR2_x86_i486 |
| 239 | default "i586" if BR2_x86_i586 |
| 240 | default "pentium-mmx" if BR2_x86_pentium_mmx |
| 241 | default "i686" if BR2_x86_i686 |
| 242 | default "pentiumpro" if BR2_x86_pentiumpro |
| 243 | default "pentium-m" if BR2_x86_pentium_m |
| 244 | default "pentium2" if BR2_x86_pentium2 |
| 245 | default "pentium3" if BR2_x86_pentium3 |
| 246 | default "pentium4" if BR2_x86_pentium4 |
| 247 | default "prescott" if BR2_x86_prescott |
| 248 | default "nocona" if BR2_x86_nocona |
| 249 | default "core2" if BR2_x86_core2 |
Bernd Kuhls | affb6a3 | 2014-04-27 13:29:15 +0200 | [diff] [blame^] | 250 | default "corei7" if BR2_x86_corei7 |
Thomas Petazzoni | 171075e | 2012-11-15 03:53:53 +0000 | [diff] [blame] | 251 | default "atom" if BR2_x86_atom |
| 252 | default "k8" if BR2_x86_opteron |
| 253 | default "k8-sse3" if BR2_x86_opteron_sse3 |
| 254 | default "barcelona" if BR2_x86_barcelona |
Adrien Béraud | a20cb38 | 2014-01-15 17:17:10 -0500 | [diff] [blame] | 255 | default "btver2" if BR2_x86_jaguar |
Thomas Petazzoni | 171075e | 2012-11-15 03:53:53 +0000 | [diff] [blame] | 256 | default "k6" if BR2_x86_k6 |
| 257 | default "k6-2" if BR2_x86_k6_2 |
| 258 | default "athlon" if BR2_x86_athlon |
| 259 | default "athlon-4" if BR2_x86_athlon_4 |
| 260 | default "winchip-c6" if BR2_x86_winchip_c6 |
| 261 | default "winchip2" if BR2_x86_winchip2 |
| 262 | default "c3" if BR2_x86_c3 |
| 263 | default "c3-2" if BR2_x86_c32 |
| 264 | default "geode" if BR2_x86_geode |