Config.in.x86 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  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. choice
  17. prompt "Target Architecture Variant"
  18. depends on BR2_i386 || BR2_x86_64
  19. default BR2_x86_i586 if BR2_i386
  20. default BR2_x86_generic if BR2_x86_64
  21. help
  22. Specific CPU variant to use
  23. config BR2_x86_generic
  24. bool "generic"
  25. config BR2_x86_i386
  26. bool "i386"
  27. depends on !BR2_x86_64
  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_i686
  35. bool "i686"
  36. depends on !BR2_x86_64
  37. config BR2_x86_pentiumpro
  38. bool "pentium pro"
  39. depends on !BR2_x86_64
  40. config BR2_x86_pentium_mmx
  41. bool "pentium MMX"
  42. select BR2_X86_CPU_HAS_MMX
  43. depends on !BR2_x86_64
  44. config BR2_x86_pentium_m
  45. bool "pentium mobile"
  46. select BR2_X86_CPU_HAS_MMX
  47. select BR2_X86_CPU_HAS_SSE
  48. depends on !BR2_x86_64
  49. config BR2_x86_pentium2
  50. bool "pentium2"
  51. select BR2_X86_CPU_HAS_MMX
  52. depends on !BR2_x86_64
  53. config BR2_x86_pentium3
  54. bool "pentium3"
  55. select BR2_X86_CPU_HAS_MMX
  56. select BR2_X86_CPU_HAS_SSE
  57. depends on !BR2_x86_64
  58. config BR2_x86_pentium4
  59. bool "pentium4"
  60. select BR2_X86_CPU_HAS_MMX
  61. select BR2_X86_CPU_HAS_SSE
  62. select BR2_X86_CPU_HAS_SSE2
  63. depends on !BR2_x86_64
  64. config BR2_x86_prescott
  65. bool "prescott"
  66. select BR2_X86_CPU_HAS_MMX
  67. select BR2_X86_CPU_HAS_SSE
  68. select BR2_X86_CPU_HAS_SSE2
  69. select BR2_X86_CPU_HAS_SSE3
  70. depends on !BR2_x86_64
  71. config BR2_x86_nocona
  72. bool "nocona"
  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. config BR2_x86_core2
  78. bool "core2"
  79. select BR2_X86_CPU_HAS_MMX
  80. select BR2_X86_CPU_HAS_SSE
  81. select BR2_X86_CPU_HAS_SSE2
  82. select BR2_X86_CPU_HAS_SSE3
  83. select BR2_X86_CPU_HAS_SSSE3
  84. config BR2_x86_corei7
  85. bool "corei7"
  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. select BR2_X86_CPU_HAS_SSE4
  92. select BR2_X86_CPU_HAS_SSE42
  93. config BR2_x86_atom
  94. bool "atom"
  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. config BR2_x86_k6
  101. bool "k6"
  102. select BR2_X86_CPU_HAS_MMX
  103. depends on !BR2_x86_64
  104. config BR2_x86_k6_2
  105. bool "k6-2"
  106. select BR2_X86_CPU_HAS_MMX
  107. depends on !BR2_x86_64
  108. config BR2_x86_athlon
  109. bool "athlon"
  110. select BR2_X86_CPU_HAS_MMX
  111. depends on !BR2_x86_64
  112. config BR2_x86_athlon_4
  113. bool "athlon-4"
  114. select BR2_X86_CPU_HAS_MMX
  115. select BR2_X86_CPU_HAS_SSE
  116. depends on !BR2_x86_64
  117. config BR2_x86_opteron
  118. bool "opteron"
  119. select BR2_X86_CPU_HAS_MMX
  120. select BR2_X86_CPU_HAS_SSE
  121. select BR2_X86_CPU_HAS_SSE2
  122. config BR2_x86_opteron_sse3
  123. bool "opteron w/ SSE3"
  124. select BR2_X86_CPU_HAS_MMX
  125. select BR2_X86_CPU_HAS_SSE
  126. select BR2_X86_CPU_HAS_SSE2
  127. select BR2_X86_CPU_HAS_SSE3
  128. config BR2_x86_barcelona
  129. bool "barcelona"
  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. config BR2_x86_jaguar
  135. bool "jaguar"
  136. select BR2_X86_CPU_HAS_MMX
  137. select BR2_X86_CPU_HAS_SSE
  138. select BR2_X86_CPU_HAS_SSE2
  139. select BR2_X86_CPU_HAS_SSE3
  140. select BR2_X86_CPU_HAS_SSSE3
  141. select BR2_X86_CPU_HAS_SSE4
  142. select BR2_X86_CPU_HAS_SSE42
  143. config BR2_x86_geode
  144. bool "geode"
  145. # Don't include MMX support because there several variant of geode
  146. # processor, some with MMX support, some without.
  147. # See: http://en.wikipedia.org/wiki/Geode_%28processor%29
  148. depends on !BR2_x86_64
  149. config BR2_x86_c3
  150. bool "Via/Cyrix C3 (Samuel/Ezra cores)"
  151. select BR2_X86_CPU_HAS_MMX
  152. depends on !BR2_x86_64
  153. config BR2_x86_c32
  154. bool "Via C3-2 (Nehemiah cores)"
  155. select BR2_X86_CPU_HAS_MMX
  156. select BR2_X86_CPU_HAS_SSE
  157. depends on !BR2_x86_64
  158. config BR2_x86_winchip_c6
  159. bool "IDT Winchip C6"
  160. select BR2_X86_CPU_HAS_MMX
  161. depends on !BR2_x86_64
  162. config BR2_x86_winchip2
  163. bool "IDT Winchip 2"
  164. select BR2_X86_CPU_HAS_MMX
  165. depends on !BR2_x86_64
  166. endchoice
  167. config BR2_ARCH
  168. default "i386" if BR2_x86_i386
  169. default "i486" if BR2_x86_i486
  170. default "i586" if BR2_x86_i586
  171. default "i586" if BR2_x86_pentium_mmx
  172. default "i586" if BR2_x86_geode
  173. default "i586" if BR2_x86_c3
  174. default "i686" if BR2_x86_c32
  175. default "i586" if BR2_x86_winchip_c6
  176. default "i586" if BR2_x86_winchip2
  177. default "i686" if BR2_x86_i686
  178. default "i686" if BR2_x86_pentium2
  179. default "i686" if BR2_x86_pentium3
  180. default "i686" if BR2_x86_pentium4
  181. default "i686" if BR2_x86_pentium_m
  182. default "i686" if BR2_x86_pentiumpro
  183. default "i686" if BR2_x86_prescott
  184. default "i686" if BR2_x86_nocona && BR2_i386
  185. default "i686" if BR2_x86_core2 && BR2_i386
  186. default "i686" if BR2_x86_corei7 && BR2_i386
  187. default "i686" if BR2_x86_atom && BR2_i386
  188. default "i686" if BR2_x86_opteron && BR2_i386
  189. default "i686" if BR2_x86_opteron_sse3 && BR2_i386
  190. default "i686" if BR2_x86_barcelona && BR2_i386
  191. default "i686" if BR2_x86_jaguar && BR2_i386
  192. default "i686" if BR2_x86_k6
  193. default "i686" if BR2_x86_k6_2
  194. default "i686" if BR2_x86_athlon
  195. default "i686" if BR2_x86_athlon_4
  196. default "x86_64" if BR2_x86_64
  197. default "i386" if BR2_x86_generic
  198. config BR2_ENDIAN
  199. default "LITTLE"
  200. config BR2_ARCH_HAS_ATOMICS
  201. default y if !BR2_x86_i386
  202. config BR2_GCC_TARGET_TUNE
  203. default "i386" if BR2_x86_i386
  204. default "i486" if BR2_x86_i486
  205. default "i586" if BR2_x86_i586
  206. default "pentium-mmx" if BR2_x86_pentium_mmx
  207. default "i686" if BR2_x86_i686
  208. default "pentiumpro" if BR2_x86_pentiumpro
  209. default "pentium-m" if BR2_x86_pentium_m
  210. default "pentium2" if BR2_x86_pentium2
  211. default "pentium3" if BR2_x86_pentium3
  212. default "pentium4" if BR2_x86_pentium4
  213. default "prescott" if BR2_x86_prescott
  214. default "nocona" if BR2_x86_nocona
  215. default "core2" if BR2_x86_core2
  216. default "corei7" if BR2_x86_corei7
  217. default "atom" if BR2_x86_atom
  218. default "k8" if BR2_x86_opteron
  219. default "k8-sse3" if BR2_x86_opteron_sse3
  220. default "barcelona" if BR2_x86_barcelona
  221. default "btver2" if BR2_x86_jaguar
  222. default "k6" if BR2_x86_k6
  223. default "k6-2" if BR2_x86_k6_2
  224. default "athlon" if BR2_x86_athlon
  225. default "athlon-4" if BR2_x86_athlon_4
  226. default "winchip-c6" if BR2_x86_winchip_c6
  227. default "winchip2" if BR2_x86_winchip2
  228. default "c3" if BR2_x86_c3
  229. default "c3-2" if BR2_x86_c32
  230. default "geode" if BR2_x86_geode
  231. default "generic" if BR2_x86_generic
  232. config BR2_GCC_TARGET_ARCH
  233. default "i386" if BR2_x86_i386
  234. default "i486" if BR2_x86_i486
  235. default "i586" if BR2_x86_i586
  236. default "pentium-mmx" if BR2_x86_pentium_mmx
  237. default "i686" if BR2_x86_i686
  238. default "pentiumpro" if BR2_x86_pentiumpro
  239. default "pentium-m" if BR2_x86_pentium_m
  240. default "pentium2" if BR2_x86_pentium2
  241. default "pentium3" if BR2_x86_pentium3
  242. default "pentium4" if BR2_x86_pentium4
  243. default "prescott" if BR2_x86_prescott
  244. default "nocona" if BR2_x86_nocona
  245. default "core2" if BR2_x86_core2
  246. default "corei7" if BR2_x86_corei7
  247. default "atom" if BR2_x86_atom
  248. default "k8" if BR2_x86_opteron
  249. default "k8-sse3" if BR2_x86_opteron_sse3
  250. default "barcelona" if BR2_x86_barcelona
  251. default "btver2" if BR2_x86_jaguar
  252. default "k6" if BR2_x86_k6
  253. default "k6-2" if BR2_x86_k6_2
  254. default "athlon" if BR2_x86_athlon
  255. default "athlon-4" if BR2_x86_athlon_4
  256. default "winchip-c6" if BR2_x86_winchip_c6
  257. default "winchip2" if BR2_x86_winchip2
  258. default "c3" if BR2_x86_c3
  259. default "c3-2" if BR2_x86_c32
  260. default "geode" if BR2_x86_geode