Config.in.x86 7.6 KB

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