Config.in.x86 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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_i686
  36. bool "i686"
  37. depends on !BR2_x86_64
  38. config BR2_x86_pentiumpro
  39. bool "pentium pro"
  40. depends on !BR2_x86_64
  41. config BR2_x86_pentium_mmx
  42. bool "pentium MMX"
  43. select BR2_X86_CPU_HAS_MMX
  44. depends on !BR2_x86_64
  45. config BR2_x86_pentium_m
  46. bool "pentium mobile"
  47. select BR2_X86_CPU_HAS_MMX
  48. select BR2_X86_CPU_HAS_SSE
  49. depends on !BR2_x86_64
  50. config BR2_x86_pentium2
  51. bool "pentium2"
  52. select BR2_X86_CPU_HAS_MMX
  53. depends on !BR2_x86_64
  54. config BR2_x86_pentium3
  55. bool "pentium3"
  56. select BR2_X86_CPU_HAS_MMX
  57. select BR2_X86_CPU_HAS_SSE
  58. depends on !BR2_x86_64
  59. config BR2_x86_pentium4
  60. bool "pentium4"
  61. select BR2_X86_CPU_HAS_MMX
  62. select BR2_X86_CPU_HAS_SSE
  63. select BR2_X86_CPU_HAS_SSE2
  64. depends on !BR2_x86_64
  65. config BR2_x86_prescott
  66. bool "prescott"
  67. select BR2_X86_CPU_HAS_MMX
  68. select BR2_X86_CPU_HAS_SSE
  69. select BR2_X86_CPU_HAS_SSE2
  70. select BR2_X86_CPU_HAS_SSE3
  71. depends on !BR2_x86_64
  72. config BR2_x86_nocona
  73. bool "nocona"
  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_core2
  79. bool "core2"
  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. select BR2_X86_CPU_HAS_SSSE3
  85. config BR2_x86_corei7
  86. bool "corei7"
  87. select BR2_X86_CPU_HAS_MMX
  88. select BR2_X86_CPU_HAS_SSE
  89. select BR2_X86_CPU_HAS_SSE2
  90. select BR2_X86_CPU_HAS_SSE3
  91. select BR2_X86_CPU_HAS_SSSE3
  92. select BR2_X86_CPU_HAS_SSE4
  93. select BR2_X86_CPU_HAS_SSE42
  94. config BR2_x86_corei7_avx
  95. bool "corei7-avx"
  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. select BR2_X86_CPU_HAS_AVX
  104. config BR2_x86_core_avx2
  105. bool "core-avx2"
  106. select BR2_X86_CPU_HAS_MMX
  107. select BR2_X86_CPU_HAS_SSE
  108. select BR2_X86_CPU_HAS_SSE2
  109. select BR2_X86_CPU_HAS_SSE3
  110. select BR2_X86_CPU_HAS_SSSE3
  111. select BR2_X86_CPU_HAS_SSE4
  112. select BR2_X86_CPU_HAS_SSE42
  113. select BR2_X86_CPU_HAS_AVX
  114. select BR2_X86_CPU_HAS_AVX2
  115. config BR2_x86_atom
  116. bool "atom"
  117. select BR2_X86_CPU_HAS_MMX
  118. select BR2_X86_CPU_HAS_SSE
  119. select BR2_X86_CPU_HAS_SSE2
  120. select BR2_X86_CPU_HAS_SSE3
  121. select BR2_X86_CPU_HAS_SSSE3
  122. config BR2_x86_k6
  123. bool "k6"
  124. select BR2_X86_CPU_HAS_MMX
  125. depends on !BR2_x86_64
  126. config BR2_x86_k6_2
  127. bool "k6-2"
  128. select BR2_X86_CPU_HAS_MMX
  129. depends on !BR2_x86_64
  130. config BR2_x86_athlon
  131. bool "athlon"
  132. select BR2_X86_CPU_HAS_MMX
  133. depends on !BR2_x86_64
  134. config BR2_x86_athlon_4
  135. bool "athlon-4"
  136. select BR2_X86_CPU_HAS_MMX
  137. select BR2_X86_CPU_HAS_SSE
  138. depends on !BR2_x86_64
  139. config BR2_x86_opteron
  140. bool "opteron"
  141. select BR2_X86_CPU_HAS_MMX
  142. select BR2_X86_CPU_HAS_SSE
  143. select BR2_X86_CPU_HAS_SSE2
  144. config BR2_x86_opteron_sse3
  145. bool "opteron w/ SSE3"
  146. select BR2_X86_CPU_HAS_MMX
  147. select BR2_X86_CPU_HAS_SSE
  148. select BR2_X86_CPU_HAS_SSE2
  149. select BR2_X86_CPU_HAS_SSE3
  150. config BR2_x86_barcelona
  151. bool "barcelona"
  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_jaguar
  157. bool "jaguar"
  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. select BR2_X86_CPU_HAS_SSSE3
  163. select BR2_X86_CPU_HAS_SSE4
  164. select BR2_X86_CPU_HAS_SSE42
  165. config BR2_x86_steamroller
  166. bool "steamroller"
  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_geode
  175. bool "geode"
  176. # Don't include MMX support because there several variant of geode
  177. # processor, some with MMX support, some without.
  178. # See: http://en.wikipedia.org/wiki/Geode_%28processor%29
  179. depends on !BR2_x86_64
  180. config BR2_x86_c3
  181. bool "Via/Cyrix C3 (Samuel/Ezra cores)"
  182. select BR2_X86_CPU_HAS_MMX
  183. depends on !BR2_x86_64
  184. config BR2_x86_c32
  185. bool "Via C3-2 (Nehemiah cores)"
  186. select BR2_X86_CPU_HAS_MMX
  187. select BR2_X86_CPU_HAS_SSE
  188. depends on !BR2_x86_64
  189. config BR2_x86_winchip_c6
  190. bool "IDT Winchip C6"
  191. select BR2_X86_CPU_HAS_MMX
  192. depends on !BR2_x86_64
  193. config BR2_x86_winchip2
  194. bool "IDT Winchip 2"
  195. select BR2_X86_CPU_HAS_MMX
  196. depends on !BR2_x86_64
  197. endchoice
  198. config BR2_ARCH
  199. default "i386" if BR2_x86_i386
  200. default "i486" if BR2_x86_i486
  201. default "i586" if BR2_x86_i586
  202. default "i586" if BR2_x86_pentium_mmx
  203. default "i586" if BR2_x86_geode
  204. default "i586" if BR2_x86_c3
  205. default "i686" if BR2_x86_c32
  206. default "i586" if BR2_x86_winchip_c6
  207. default "i586" if BR2_x86_winchip2
  208. default "i686" if BR2_x86_i686
  209. default "i686" if BR2_x86_pentium2
  210. default "i686" if BR2_x86_pentium3
  211. default "i686" if BR2_x86_pentium4
  212. default "i686" if BR2_x86_pentium_m
  213. default "i686" if BR2_x86_pentiumpro
  214. default "i686" if BR2_x86_prescott
  215. default "i686" if BR2_x86_nocona && BR2_i386
  216. default "i686" if BR2_x86_core2 && BR2_i386
  217. default "i686" if BR2_x86_corei7 && BR2_i386
  218. default "i686" if BR2_x86_atom && BR2_i386
  219. default "i686" if BR2_x86_opteron && BR2_i386
  220. default "i686" if BR2_x86_opteron_sse3 && BR2_i386
  221. default "i686" if BR2_x86_barcelona && BR2_i386
  222. default "i686" if BR2_x86_jaguar && BR2_i386
  223. default "i686" if BR2_x86_steamroller && BR2_i386
  224. default "i686" if BR2_x86_k6
  225. default "i686" if BR2_x86_k6_2
  226. default "i686" if BR2_x86_athlon
  227. default "i686" if BR2_x86_athlon_4
  228. default "x86_64" if BR2_x86_64
  229. config BR2_ENDIAN
  230. default "LITTLE"
  231. config BR2_ARCH_HAS_ATOMICS
  232. default y if !BR2_x86_i386
  233. config BR2_GCC_TARGET_ARCH
  234. default "i386" if BR2_x86_i386
  235. default "i486" if BR2_x86_i486
  236. default "i586" if BR2_x86_i586
  237. default "pentium-mmx" if BR2_x86_pentium_mmx
  238. default "i686" if BR2_x86_i686
  239. default "pentiumpro" if BR2_x86_pentiumpro
  240. default "pentium-m" if BR2_x86_pentium_m
  241. default "pentium2" if BR2_x86_pentium2
  242. default "pentium3" if BR2_x86_pentium3
  243. default "pentium4" if BR2_x86_pentium4
  244. default "prescott" if BR2_x86_prescott
  245. default "nocona" if BR2_x86_nocona
  246. default "core2" if BR2_x86_core2
  247. default "corei7" if BR2_x86_corei7
  248. default "corei7-avx" if BR2_x86_corei7_avx
  249. default "core-avx2" if BR2_x86_core_avx2
  250. default "atom" if BR2_x86_atom
  251. default "k8" if BR2_x86_opteron
  252. default "k8-sse3" if BR2_x86_opteron_sse3
  253. default "barcelona" if BR2_x86_barcelona
  254. default "btver2" if BR2_x86_jaguar
  255. default "bdver3" if BR2_x86_steamroller
  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