Config.in.x86 8.4 KB

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