Config.in.x86 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  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
  12. config BR2_X86_CPU_HAS_SSE4
  13. bool
  14. config BR2_X86_CPU_HAS_SSE42
  15. bool
  16. config BR2_X86_CPU_HAS_AVX
  17. bool
  18. config BR2_X86_CPU_HAS_AVX2
  19. bool
  20. choice
  21. prompt "Target Architecture Variant"
  22. default BR2_x86_i586 if BR2_i386
  23. depends on BR2_i386 || BR2_x86_64
  24. help
  25. Specific CPU variant to use
  26. config BR2_x86_i486
  27. bool "i486"
  28. depends on !BR2_x86_64
  29. config BR2_x86_i586
  30. bool "i586"
  31. depends on !BR2_x86_64
  32. config BR2_x86_x1000
  33. bool "x1000"
  34. depends on !BR2_x86_64
  35. help
  36. The Intel X1000 is a Pentium class microprocessor in the
  37. Quark (sub-Atom) Product Line. The X1000 has a bug on the
  38. lock prefix requiring that prefix must be stripped at build
  39. time.
  40. See https://en.wikipedia.org/wiki/Intel_Quark
  41. config BR2_x86_i686
  42. bool "i686"
  43. depends on !BR2_x86_64
  44. config BR2_x86_pentiumpro
  45. bool "pentium pro"
  46. depends on !BR2_x86_64
  47. config BR2_x86_pentium_mmx
  48. bool "pentium MMX"
  49. depends on !BR2_x86_64
  50. select BR2_X86_CPU_HAS_MMX
  51. config BR2_x86_pentium_m
  52. bool "pentium mobile"
  53. depends on !BR2_x86_64
  54. select BR2_X86_CPU_HAS_MMX
  55. select BR2_X86_CPU_HAS_SSE
  56. config BR2_x86_pentium2
  57. bool "pentium2"
  58. depends on !BR2_x86_64
  59. select BR2_X86_CPU_HAS_MMX
  60. config BR2_x86_pentium3
  61. bool "pentium3"
  62. depends on !BR2_x86_64
  63. select BR2_X86_CPU_HAS_MMX
  64. select BR2_X86_CPU_HAS_SSE
  65. config BR2_x86_pentium4
  66. bool "pentium4"
  67. depends on !BR2_x86_64
  68. select BR2_X86_CPU_HAS_MMX
  69. select BR2_X86_CPU_HAS_SSE
  70. select BR2_X86_CPU_HAS_SSE2
  71. config BR2_x86_prescott
  72. bool "prescott"
  73. depends on !BR2_x86_64
  74. select BR2_X86_CPU_HAS_MMX
  75. select BR2_X86_CPU_HAS_SSE
  76. select BR2_X86_CPU_HAS_SSE2
  77. select BR2_X86_CPU_HAS_SSE3
  78. config BR2_x86_nocona
  79. bool "nocona"
  80. select BR2_X86_CPU_HAS_MMX
  81. select BR2_X86_CPU_HAS_SSE
  82. select BR2_X86_CPU_HAS_SSE2
  83. select BR2_X86_CPU_HAS_SSE3
  84. config BR2_x86_core2
  85. bool "core2"
  86. select BR2_X86_CPU_HAS_MMX
  87. select BR2_X86_CPU_HAS_SSE
  88. select BR2_X86_CPU_HAS_SSE2
  89. select BR2_X86_CPU_HAS_SSE3
  90. select BR2_X86_CPU_HAS_SSSE3
  91. config BR2_x86_corei7
  92. bool "corei7"
  93. select BR2_X86_CPU_HAS_MMX
  94. select BR2_X86_CPU_HAS_SSE
  95. select BR2_X86_CPU_HAS_SSE2
  96. select BR2_X86_CPU_HAS_SSE3
  97. select BR2_X86_CPU_HAS_SSSE3
  98. select BR2_X86_CPU_HAS_SSE4
  99. select BR2_X86_CPU_HAS_SSE42
  100. config BR2_x86_westmere
  101. bool "westmere"
  102. select BR2_X86_CPU_HAS_MMX
  103. select BR2_X86_CPU_HAS_SSE
  104. select BR2_X86_CPU_HAS_SSE2
  105. select BR2_X86_CPU_HAS_SSE3
  106. select BR2_X86_CPU_HAS_SSSE3
  107. select BR2_X86_CPU_HAS_SSE4
  108. select BR2_X86_CPU_HAS_SSE42
  109. config BR2_x86_corei7_avx
  110. bool "corei7-avx"
  111. select BR2_X86_CPU_HAS_MMX
  112. select BR2_X86_CPU_HAS_SSE
  113. select BR2_X86_CPU_HAS_SSE2
  114. select BR2_X86_CPU_HAS_SSE3
  115. select BR2_X86_CPU_HAS_SSSE3
  116. select BR2_X86_CPU_HAS_SSE4
  117. select BR2_X86_CPU_HAS_SSE42
  118. select BR2_X86_CPU_HAS_AVX
  119. config BR2_x86_core_avx2
  120. bool "core-avx2"
  121. select BR2_X86_CPU_HAS_MMX
  122. select BR2_X86_CPU_HAS_SSE
  123. select BR2_X86_CPU_HAS_SSE2
  124. select BR2_X86_CPU_HAS_SSE3
  125. select BR2_X86_CPU_HAS_SSSE3
  126. select BR2_X86_CPU_HAS_SSE4
  127. select BR2_X86_CPU_HAS_SSE42
  128. select BR2_X86_CPU_HAS_AVX
  129. select BR2_X86_CPU_HAS_AVX2
  130. config BR2_x86_atom
  131. bool "atom"
  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
  136. select BR2_X86_CPU_HAS_SSSE3
  137. config BR2_x86_silvermont
  138. bool "silvermont"
  139. select BR2_X86_CPU_HAS_MMX
  140. select BR2_X86_CPU_HAS_SSE
  141. select BR2_X86_CPU_HAS_SSE2
  142. select BR2_X86_CPU_HAS_SSE3
  143. select BR2_X86_CPU_HAS_SSSE3
  144. select BR2_X86_CPU_HAS_SSE4
  145. select BR2_X86_CPU_HAS_SSE42
  146. config BR2_x86_k6
  147. bool "k6"
  148. depends on !BR2_x86_64
  149. select BR2_X86_CPU_HAS_MMX
  150. config BR2_x86_k6_2
  151. bool "k6-2"
  152. depends on !BR2_x86_64
  153. select BR2_X86_CPU_HAS_MMX
  154. config BR2_x86_athlon
  155. bool "athlon"
  156. depends on !BR2_x86_64
  157. select BR2_X86_CPU_HAS_MMX
  158. config BR2_x86_athlon_4
  159. bool "athlon-4"
  160. depends on !BR2_x86_64
  161. select BR2_X86_CPU_HAS_MMX
  162. select BR2_X86_CPU_HAS_SSE
  163. config BR2_x86_opteron
  164. bool "opteron"
  165. select BR2_X86_CPU_HAS_MMX
  166. select BR2_X86_CPU_HAS_SSE
  167. select BR2_X86_CPU_HAS_SSE2
  168. config BR2_x86_opteron_sse3
  169. bool "opteron w/ SSE3"
  170. select BR2_X86_CPU_HAS_MMX
  171. select BR2_X86_CPU_HAS_SSE
  172. select BR2_X86_CPU_HAS_SSE2
  173. select BR2_X86_CPU_HAS_SSE3
  174. config BR2_x86_barcelona
  175. bool "barcelona"
  176. select BR2_X86_CPU_HAS_MMX
  177. select BR2_X86_CPU_HAS_SSE
  178. select BR2_X86_CPU_HAS_SSE2
  179. select BR2_X86_CPU_HAS_SSE3
  180. config BR2_x86_jaguar
  181. bool "jaguar"
  182. select BR2_X86_CPU_HAS_MMX
  183. select BR2_X86_CPU_HAS_SSE
  184. select BR2_X86_CPU_HAS_SSE2
  185. select BR2_X86_CPU_HAS_SSE3
  186. select BR2_X86_CPU_HAS_SSSE3
  187. select BR2_X86_CPU_HAS_SSE4
  188. select BR2_X86_CPU_HAS_SSE42
  189. config BR2_x86_steamroller
  190. bool "steamroller"
  191. select BR2_X86_CPU_HAS_MMX
  192. select BR2_X86_CPU_HAS_SSE
  193. select BR2_X86_CPU_HAS_SSE2
  194. select BR2_X86_CPU_HAS_SSE3
  195. select BR2_X86_CPU_HAS_SSSE3
  196. select BR2_X86_CPU_HAS_SSE4
  197. select BR2_X86_CPU_HAS_SSE42
  198. config BR2_x86_geode
  199. bool "geode"
  200. # Don't include MMX support because there several variant of geode
  201. # processor, some with MMX support, some without.
  202. # See: http://en.wikipedia.org/wiki/Geode_%28processor%29
  203. depends on !BR2_x86_64
  204. config BR2_x86_c3
  205. bool "Via/Cyrix C3 (Samuel/Ezra cores)"
  206. depends on !BR2_x86_64
  207. select BR2_X86_CPU_HAS_MMX
  208. config BR2_x86_c32
  209. bool "Via C3-2 (Nehemiah cores)"
  210. depends on !BR2_x86_64
  211. select BR2_X86_CPU_HAS_MMX
  212. select BR2_X86_CPU_HAS_SSE
  213. config BR2_x86_winchip_c6
  214. bool "IDT Winchip C6"
  215. depends on !BR2_x86_64
  216. select BR2_X86_CPU_HAS_MMX
  217. config BR2_x86_winchip2
  218. bool "IDT Winchip 2"
  219. depends on !BR2_x86_64
  220. select BR2_X86_CPU_HAS_MMX
  221. endchoice
  222. config BR2_ARCH
  223. default "i486" if BR2_x86_i486
  224. default "i586" if BR2_x86_i586
  225. default "i586" if BR2_x86_x1000
  226. default "i586" if BR2_x86_pentium_mmx
  227. default "i586" if BR2_x86_geode
  228. default "i586" if BR2_x86_c3
  229. default "i686" if BR2_x86_c32
  230. default "i586" if BR2_x86_winchip_c6
  231. default "i586" if BR2_x86_winchip2
  232. default "i686" if BR2_x86_i686
  233. default "i686" if BR2_x86_pentium2
  234. default "i686" if BR2_x86_pentium3
  235. default "i686" if BR2_x86_pentium4
  236. default "i686" if BR2_x86_pentium_m
  237. default "i686" if BR2_x86_pentiumpro
  238. default "i686" if BR2_x86_prescott
  239. default "i686" if BR2_x86_nocona && BR2_i386
  240. default "i686" if BR2_x86_core2 && BR2_i386
  241. default "i686" if BR2_x86_corei7 && BR2_i386
  242. default "i686" if BR2_x86_westmere && BR2_i386
  243. default "i686" if BR2_x86_corei7_avx && BR2_i386
  244. default "i686" if BR2_x86_core_avx2 && BR2_i386
  245. default "i686" if BR2_x86_atom && BR2_i386
  246. default "i686" if BR2_x86_silvermont && BR2_i386
  247. default "i686" if BR2_x86_opteron && BR2_i386
  248. default "i686" if BR2_x86_opteron_sse3 && BR2_i386
  249. default "i686" if BR2_x86_barcelona && BR2_i386
  250. default "i686" if BR2_x86_jaguar && BR2_i386
  251. default "i686" if BR2_x86_steamroller && BR2_i386
  252. default "i686" if BR2_x86_k6
  253. default "i686" if BR2_x86_k6_2
  254. default "i686" if BR2_x86_athlon
  255. default "i686" if BR2_x86_athlon_4
  256. default "x86_64" if BR2_x86_64
  257. config BR2_ENDIAN
  258. default "LITTLE"
  259. config BR2_GCC_TARGET_ARCH
  260. default "i486" if BR2_x86_i486
  261. default "i586" if BR2_x86_i586
  262. default "i586" if BR2_x86_x1000
  263. default "pentium-mmx" if BR2_x86_pentium_mmx
  264. default "i686" if BR2_x86_i686
  265. default "pentiumpro" if BR2_x86_pentiumpro
  266. default "pentium-m" if BR2_x86_pentium_m
  267. default "pentium2" if BR2_x86_pentium2
  268. default "pentium3" if BR2_x86_pentium3
  269. default "pentium4" if BR2_x86_pentium4
  270. default "prescott" if BR2_x86_prescott
  271. default "nocona" if BR2_x86_nocona
  272. default "core2" if BR2_x86_core2
  273. default "corei7" if BR2_x86_corei7
  274. default "corei7-avx" if BR2_x86_corei7_avx
  275. default "core-avx2" if BR2_x86_core_avx2
  276. default "atom" if BR2_x86_atom
  277. default "westmere" if BR2_x86_westmere
  278. default "silvermont" if BR2_x86_silvermont
  279. default "k8" if BR2_x86_opteron
  280. default "k8-sse3" if BR2_x86_opteron_sse3
  281. default "barcelona" if BR2_x86_barcelona
  282. default "btver2" if BR2_x86_jaguar
  283. default "bdver3" if BR2_x86_steamroller
  284. default "k6" if BR2_x86_k6
  285. default "k6-2" if BR2_x86_k6_2
  286. default "athlon" if BR2_x86_athlon
  287. default "athlon-4" if BR2_x86_athlon_4
  288. default "winchip-c6" if BR2_x86_winchip_c6
  289. default "winchip2" if BR2_x86_winchip2
  290. default "c3" if BR2_x86_c3
  291. default "c3-2" if BR2_x86_c32
  292. default "geode" if BR2_x86_geode
  293. config BR2_READELF_ARCH_NAME
  294. default "Intel 80386" if BR2_i386
  295. default "Advanced Micro Devices X86-64" if BR2_x86_64