Config.in.x86 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  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_silvermont
  129. bool "silvermont"
  130. select BR2_X86_CPU_HAS_MMX
  131. select BR2_X86_CPU_HAS_SSE
  132. select BR2_X86_CPU_HAS_SSE2
  133. select BR2_X86_CPU_HAS_SSE3
  134. select BR2_X86_CPU_HAS_SSSE3
  135. select BR2_X86_CPU_HAS_SSE4
  136. select BR2_X86_CPU_HAS_SSE42
  137. config BR2_x86_k6
  138. bool "k6"
  139. select BR2_X86_CPU_HAS_MMX
  140. depends on !BR2_x86_64
  141. config BR2_x86_k6_2
  142. bool "k6-2"
  143. select BR2_X86_CPU_HAS_MMX
  144. depends on !BR2_x86_64
  145. config BR2_x86_athlon
  146. bool "athlon"
  147. select BR2_X86_CPU_HAS_MMX
  148. depends on !BR2_x86_64
  149. config BR2_x86_athlon_4
  150. bool "athlon-4"
  151. select BR2_X86_CPU_HAS_MMX
  152. select BR2_X86_CPU_HAS_SSE
  153. depends on !BR2_x86_64
  154. config BR2_x86_opteron
  155. bool "opteron"
  156. select BR2_X86_CPU_HAS_MMX
  157. select BR2_X86_CPU_HAS_SSE
  158. select BR2_X86_CPU_HAS_SSE2
  159. config BR2_x86_opteron_sse3
  160. bool "opteron w/ SSE3"
  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_barcelona
  166. bool "barcelona"
  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. config BR2_x86_jaguar
  172. bool "jaguar"
  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_steamroller
  181. bool "steamroller"
  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_geode
  190. bool "geode"
  191. # Don't include MMX support because there several variant of geode
  192. # processor, some with MMX support, some without.
  193. # See: http://en.wikipedia.org/wiki/Geode_%28processor%29
  194. depends on !BR2_x86_64
  195. config BR2_x86_c3
  196. bool "Via/Cyrix C3 (Samuel/Ezra cores)"
  197. select BR2_X86_CPU_HAS_MMX
  198. depends on !BR2_x86_64
  199. config BR2_x86_c32
  200. bool "Via C3-2 (Nehemiah cores)"
  201. select BR2_X86_CPU_HAS_MMX
  202. select BR2_X86_CPU_HAS_SSE
  203. depends on !BR2_x86_64
  204. config BR2_x86_winchip_c6
  205. bool "IDT Winchip C6"
  206. select BR2_X86_CPU_HAS_MMX
  207. depends on !BR2_x86_64
  208. config BR2_x86_winchip2
  209. bool "IDT Winchip 2"
  210. select BR2_X86_CPU_HAS_MMX
  211. depends on !BR2_x86_64
  212. endchoice
  213. config BR2_ARCH
  214. default "i486" if BR2_x86_i486
  215. default "i586" if BR2_x86_i586
  216. default "i586" if BR2_x86_x1000
  217. default "i586" if BR2_x86_pentium_mmx
  218. default "i586" if BR2_x86_geode
  219. default "i586" if BR2_x86_c3
  220. default "i686" if BR2_x86_c32
  221. default "i586" if BR2_x86_winchip_c6
  222. default "i586" if BR2_x86_winchip2
  223. default "i686" if BR2_x86_i686
  224. default "i686" if BR2_x86_pentium2
  225. default "i686" if BR2_x86_pentium3
  226. default "i686" if BR2_x86_pentium4
  227. default "i686" if BR2_x86_pentium_m
  228. default "i686" if BR2_x86_pentiumpro
  229. default "i686" if BR2_x86_prescott
  230. default "i686" if BR2_x86_nocona && BR2_i386
  231. default "i686" if BR2_x86_core2 && BR2_i386
  232. default "i686" if BR2_x86_corei7 && BR2_i386
  233. default "i686" if BR2_x86_corei7_avx && BR2_i386
  234. default "i686" if BR2_x86_corei7_avx2 && BR2_i386
  235. default "i686" if BR2_x86_atom && BR2_i386
  236. default "i686" if BR2_x86_silvermont && BR2_i386
  237. default "i686" if BR2_x86_opteron && BR2_i386
  238. default "i686" if BR2_x86_opteron_sse3 && BR2_i386
  239. default "i686" if BR2_x86_barcelona && BR2_i386
  240. default "i686" if BR2_x86_jaguar && BR2_i386
  241. default "i686" if BR2_x86_steamroller && BR2_i386
  242. default "i686" if BR2_x86_k6
  243. default "i686" if BR2_x86_k6_2
  244. default "i686" if BR2_x86_athlon
  245. default "i686" if BR2_x86_athlon_4
  246. default "x86_64" if BR2_x86_64
  247. config BR2_ENDIAN
  248. default "LITTLE"
  249. config BR2_GCC_TARGET_ARCH
  250. default "i486" if BR2_x86_i486
  251. default "i586" if BR2_x86_i586
  252. default "i586" if BR2_x86_x1000
  253. default "pentium-mmx" if BR2_x86_pentium_mmx
  254. default "i686" if BR2_x86_i686
  255. default "pentiumpro" if BR2_x86_pentiumpro
  256. default "pentium-m" if BR2_x86_pentium_m
  257. default "pentium2" if BR2_x86_pentium2
  258. default "pentium3" if BR2_x86_pentium3
  259. default "pentium4" if BR2_x86_pentium4
  260. default "prescott" if BR2_x86_prescott
  261. default "nocona" if BR2_x86_nocona
  262. default "core2" if BR2_x86_core2
  263. default "corei7" if BR2_x86_corei7
  264. default "corei7-avx" if BR2_x86_corei7_avx
  265. default "core-avx2" if BR2_x86_core_avx2
  266. default "atom" if BR2_x86_atom
  267. default "silvermont" if BR2_x86_silvermont
  268. default "k8" if BR2_x86_opteron
  269. default "k8-sse3" if BR2_x86_opteron_sse3
  270. default "barcelona" if BR2_x86_barcelona
  271. default "btver2" if BR2_x86_jaguar
  272. default "bdver3" if BR2_x86_steamroller
  273. default "k6" if BR2_x86_k6
  274. default "k6-2" if BR2_x86_k6_2
  275. default "athlon" if BR2_x86_athlon
  276. default "athlon-4" if BR2_x86_athlon_4
  277. default "winchip-c6" if BR2_x86_winchip_c6
  278. default "winchip2" if BR2_x86_winchip2
  279. default "c3" if BR2_x86_c3
  280. default "c3-2" if BR2_x86_c32
  281. default "geode" if BR2_x86_geode
  282. config BR2_READELF_ARCH_NAME
  283. default "Intel 80386" if BR2_i386
  284. default "Advanced Micro Devices X86-64" if BR2_x86_64