Config.in.x86 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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. depends on BR2_i386 || BR2_x86_64
  23. default BR2_x86_i586 if BR2_i386
  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. select BR2_X86_CPU_HAS_MMX
  50. depends on !BR2_x86_64
  51. config BR2_x86_pentium_m
  52. bool "pentium mobile"
  53. select BR2_X86_CPU_HAS_MMX
  54. select BR2_X86_CPU_HAS_SSE
  55. depends on !BR2_x86_64
  56. config BR2_x86_pentium2
  57. bool "pentium2"
  58. select BR2_X86_CPU_HAS_MMX
  59. depends on !BR2_x86_64
  60. config BR2_x86_pentium3
  61. bool "pentium3"
  62. select BR2_X86_CPU_HAS_MMX
  63. select BR2_X86_CPU_HAS_SSE
  64. depends on !BR2_x86_64
  65. config BR2_x86_pentium4
  66. bool "pentium4"
  67. select BR2_X86_CPU_HAS_MMX
  68. select BR2_X86_CPU_HAS_SSE
  69. select BR2_X86_CPU_HAS_SSE2
  70. depends on !BR2_x86_64
  71. config BR2_x86_prescott
  72. bool "prescott"
  73. select BR2_X86_CPU_HAS_MMX
  74. select BR2_X86_CPU_HAS_SSE
  75. select BR2_X86_CPU_HAS_SSE2
  76. select BR2_X86_CPU_HAS_SSE3
  77. depends on !BR2_x86_64
  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_corei7_avx
  101. bool "corei7-avx"
  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. select BR2_X86_CPU_HAS_AVX
  110. config BR2_x86_core_avx2
  111. bool "core-avx2"
  112. select BR2_X86_CPU_HAS_MMX
  113. select BR2_X86_CPU_HAS_SSE
  114. select BR2_X86_CPU_HAS_SSE2
  115. select BR2_X86_CPU_HAS_SSE3
  116. select BR2_X86_CPU_HAS_SSSE3
  117. select BR2_X86_CPU_HAS_SSE4
  118. select BR2_X86_CPU_HAS_SSE42
  119. select BR2_X86_CPU_HAS_AVX
  120. select BR2_X86_CPU_HAS_AVX2
  121. config BR2_x86_atom
  122. bool "atom"
  123. select BR2_X86_CPU_HAS_MMX
  124. select BR2_X86_CPU_HAS_SSE
  125. select BR2_X86_CPU_HAS_SSE2
  126. select BR2_X86_CPU_HAS_SSE3
  127. select BR2_X86_CPU_HAS_SSSE3
  128. config BR2_x86_k6
  129. bool "k6"
  130. select BR2_X86_CPU_HAS_MMX
  131. depends on !BR2_x86_64
  132. config BR2_x86_k6_2
  133. bool "k6-2"
  134. select BR2_X86_CPU_HAS_MMX
  135. depends on !BR2_x86_64
  136. config BR2_x86_athlon
  137. bool "athlon"
  138. select BR2_X86_CPU_HAS_MMX
  139. depends on !BR2_x86_64
  140. config BR2_x86_athlon_4
  141. bool "athlon-4"
  142. select BR2_X86_CPU_HAS_MMX
  143. select BR2_X86_CPU_HAS_SSE
  144. depends on !BR2_x86_64
  145. config BR2_x86_opteron
  146. bool "opteron"
  147. select BR2_X86_CPU_HAS_MMX
  148. select BR2_X86_CPU_HAS_SSE
  149. select BR2_X86_CPU_HAS_SSE2
  150. config BR2_x86_opteron_sse3
  151. bool "opteron w/ SSE3"
  152. select BR2_X86_CPU_HAS_MMX
  153. select BR2_X86_CPU_HAS_SSE
  154. select BR2_X86_CPU_HAS_SSE2
  155. select BR2_X86_CPU_HAS_SSE3
  156. config BR2_x86_barcelona
  157. bool "barcelona"
  158. select BR2_X86_CPU_HAS_MMX
  159. select BR2_X86_CPU_HAS_SSE
  160. select BR2_X86_CPU_HAS_SSE2
  161. select BR2_X86_CPU_HAS_SSE3
  162. config BR2_x86_jaguar
  163. bool "jaguar"
  164. select BR2_X86_CPU_HAS_MMX
  165. select BR2_X86_CPU_HAS_SSE
  166. select BR2_X86_CPU_HAS_SSE2
  167. select BR2_X86_CPU_HAS_SSE3
  168. select BR2_X86_CPU_HAS_SSSE3
  169. select BR2_X86_CPU_HAS_SSE4
  170. select BR2_X86_CPU_HAS_SSE42
  171. config BR2_x86_steamroller
  172. bool "steamroller"
  173. select BR2_X86_CPU_HAS_MMX
  174. select BR2_X86_CPU_HAS_SSE
  175. select BR2_X86_CPU_HAS_SSE2
  176. select BR2_X86_CPU_HAS_SSE3
  177. select BR2_X86_CPU_HAS_SSSE3
  178. select BR2_X86_CPU_HAS_SSE4
  179. select BR2_X86_CPU_HAS_SSE42
  180. config BR2_x86_geode
  181. bool "geode"
  182. # Don't include MMX support because there several variant of geode
  183. # processor, some with MMX support, some without.
  184. # See: http://en.wikipedia.org/wiki/Geode_%28processor%29
  185. depends on !BR2_x86_64
  186. config BR2_x86_c3
  187. bool "Via/Cyrix C3 (Samuel/Ezra cores)"
  188. select BR2_X86_CPU_HAS_MMX
  189. depends on !BR2_x86_64
  190. config BR2_x86_c32
  191. bool "Via C3-2 (Nehemiah cores)"
  192. select BR2_X86_CPU_HAS_MMX
  193. select BR2_X86_CPU_HAS_SSE
  194. depends on !BR2_x86_64
  195. config BR2_x86_winchip_c6
  196. bool "IDT Winchip C6"
  197. select BR2_X86_CPU_HAS_MMX
  198. depends on !BR2_x86_64
  199. config BR2_x86_winchip2
  200. bool "IDT Winchip 2"
  201. select BR2_X86_CPU_HAS_MMX
  202. depends on !BR2_x86_64
  203. endchoice
  204. config BR2_ARCH
  205. default "i486" if BR2_x86_i486
  206. default "i586" if BR2_x86_i586
  207. default "i586" if BR2_x86_x1000
  208. default "i586" if BR2_x86_pentium_mmx
  209. default "i586" if BR2_x86_geode
  210. default "i586" if BR2_x86_c3
  211. default "i686" if BR2_x86_c32
  212. default "i586" if BR2_x86_winchip_c6
  213. default "i586" if BR2_x86_winchip2
  214. default "i686" if BR2_x86_i686
  215. default "i686" if BR2_x86_pentium2
  216. default "i686" if BR2_x86_pentium3
  217. default "i686" if BR2_x86_pentium4
  218. default "i686" if BR2_x86_pentium_m
  219. default "i686" if BR2_x86_pentiumpro
  220. default "i686" if BR2_x86_prescott
  221. default "i686" if BR2_x86_nocona && BR2_i386
  222. default "i686" if BR2_x86_core2 && BR2_i386
  223. default "i686" if BR2_x86_corei7 && BR2_i386
  224. default "i686" if BR2_x86_corei7_avx && BR2_i386
  225. default "i686" if BR2_x86_corei7_avx2 && BR2_i386
  226. default "i686" if BR2_x86_atom && BR2_i386
  227. default "i686" if BR2_x86_opteron && BR2_i386
  228. default "i686" if BR2_x86_opteron_sse3 && BR2_i386
  229. default "i686" if BR2_x86_barcelona && BR2_i386
  230. default "i686" if BR2_x86_jaguar && BR2_i386
  231. default "i686" if BR2_x86_steamroller && BR2_i386
  232. default "i686" if BR2_x86_k6
  233. default "i686" if BR2_x86_k6_2
  234. default "i686" if BR2_x86_athlon
  235. default "i686" if BR2_x86_athlon_4
  236. default "x86_64" if BR2_x86_64
  237. config BR2_ENDIAN
  238. default "LITTLE"
  239. config BR2_GCC_TARGET_ARCH
  240. default "i486" if BR2_x86_i486
  241. default "i586" if BR2_x86_i586
  242. default "i586" if BR2_x86_x1000
  243. default "pentium-mmx" if BR2_x86_pentium_mmx
  244. default "i686" if BR2_x86_i686
  245. default "pentiumpro" if BR2_x86_pentiumpro
  246. default "pentium-m" if BR2_x86_pentium_m
  247. default "pentium2" if BR2_x86_pentium2
  248. default "pentium3" if BR2_x86_pentium3
  249. default "pentium4" if BR2_x86_pentium4
  250. default "prescott" if BR2_x86_prescott
  251. default "nocona" if BR2_x86_nocona
  252. default "core2" if BR2_x86_core2
  253. default "corei7" if BR2_x86_corei7
  254. default "corei7-avx" if BR2_x86_corei7_avx
  255. default "core-avx2" if BR2_x86_core_avx2
  256. default "atom" if BR2_x86_atom
  257. default "k8" if BR2_x86_opteron
  258. default "k8-sse3" if BR2_x86_opteron_sse3
  259. default "barcelona" if BR2_x86_barcelona
  260. default "btver2" if BR2_x86_jaguar
  261. default "bdver3" if BR2_x86_steamroller
  262. default "k6" if BR2_x86_k6
  263. default "k6-2" if BR2_x86_k6_2
  264. default "athlon" if BR2_x86_athlon
  265. default "athlon-4" if BR2_x86_athlon_4
  266. default "winchip-c6" if BR2_x86_winchip_c6
  267. default "winchip2" if BR2_x86_winchip2
  268. default "c3" if BR2_x86_c3
  269. default "c3-2" if BR2_x86_c32
  270. default "geode" if BR2_x86_geode