Config.in.x86 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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. choice
  13. prompt "Target Architecture Variant"
  14. depends on BR2_i386 || BR2_x86_64
  15. default BR2_x86_i586 if BR2_i386
  16. default BR2_x86_generic if BR2_x86_64
  17. help
  18. Specific CPU variant to use
  19. config BR2_x86_generic
  20. bool "generic"
  21. config BR2_x86_i386
  22. bool "i386"
  23. depends on !BR2_x86_64
  24. config BR2_x86_i486
  25. bool "i486"
  26. depends on !BR2_x86_64
  27. config BR2_x86_i586
  28. bool "i586"
  29. depends on !BR2_x86_64
  30. config BR2_x86_i686
  31. bool "i686"
  32. depends on !BR2_x86_64
  33. config BR2_x86_pentiumpro
  34. bool "pentium pro"
  35. depends on !BR2_x86_64
  36. config BR2_x86_pentium_mmx
  37. bool "pentium MMX"
  38. select BR2_X86_CPU_HAS_MMX
  39. depends on !BR2_x86_64
  40. config BR2_x86_pentium_m
  41. bool "pentium mobile"
  42. select BR2_X86_CPU_HAS_MMX
  43. select BR2_X86_CPU_HAS_SSE
  44. depends on !BR2_x86_64
  45. config BR2_x86_pentium2
  46. bool "pentium2"
  47. select BR2_X86_CPU_HAS_MMX
  48. depends on !BR2_x86_64
  49. config BR2_x86_pentium3
  50. bool "pentium3"
  51. select BR2_X86_CPU_HAS_MMX
  52. select BR2_X86_CPU_HAS_SSE
  53. depends on !BR2_x86_64
  54. config BR2_x86_pentium4
  55. bool "pentium4"
  56. select BR2_X86_CPU_HAS_MMX
  57. select BR2_X86_CPU_HAS_SSE
  58. select BR2_X86_CPU_HAS_SSE2
  59. depends on !BR2_x86_64
  60. config BR2_x86_prescott
  61. bool "prescott"
  62. select BR2_X86_CPU_HAS_MMX
  63. select BR2_X86_CPU_HAS_SSE
  64. select BR2_X86_CPU_HAS_SSE2
  65. select BR2_X86_CPU_HAS_SSE3
  66. depends on !BR2_x86_64
  67. config BR2_x86_nocona
  68. bool "nocona"
  69. select BR2_X86_CPU_HAS_MMX
  70. select BR2_X86_CPU_HAS_SSE
  71. select BR2_X86_CPU_HAS_SSE2
  72. select BR2_X86_CPU_HAS_SSE3
  73. config BR2_x86_core2
  74. bool "core2"
  75. select BR2_X86_CPU_HAS_MMX
  76. select BR2_X86_CPU_HAS_SSE
  77. select BR2_X86_CPU_HAS_SSE2
  78. select BR2_X86_CPU_HAS_SSE3
  79. select BR2_X86_CPU_HAS_SSSE3
  80. config BR2_x86_atom
  81. bool "atom"
  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. select BR2_X86_CPU_HAS_SSSE3
  87. config BR2_x86_k6
  88. bool "k6"
  89. select BR2_X86_CPU_HAS_MMX
  90. depends on !BR2_x86_64
  91. config BR2_x86_k6_2
  92. bool "k6-2"
  93. select BR2_X86_CPU_HAS_MMX
  94. depends on !BR2_x86_64
  95. config BR2_x86_athlon
  96. bool "athlon"
  97. select BR2_X86_CPU_HAS_MMX
  98. depends on !BR2_x86_64
  99. config BR2_x86_athlon_4
  100. bool "athlon-4"
  101. select BR2_X86_CPU_HAS_MMX
  102. select BR2_X86_CPU_HAS_SSE
  103. depends on !BR2_x86_64
  104. config BR2_x86_opteron
  105. bool "opteron"
  106. select BR2_X86_CPU_HAS_MMX
  107. select BR2_X86_CPU_HAS_SSE
  108. select BR2_X86_CPU_HAS_SSE2
  109. config BR2_x86_opteron_sse3
  110. bool "opteron w/ SSE3"
  111. select BR2_X86_CPU_HAS_MMX
  112. select BR2_X86_CPU_HAS_SSE
  113. select BR2_X86_CPU_HAS_SSE2
  114. select BR2_X86_CPU_HAS_SSE3
  115. config BR2_x86_barcelona
  116. bool "barcelona"
  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. config BR2_x86_geode
  122. bool "geode"
  123. # Don't include MMX support because there several variant of geode
  124. # processor, some with MMX support, some without.
  125. # See: http://en.wikipedia.org/wiki/Geode_%28processor%29
  126. depends on !BR2_x86_64
  127. config BR2_x86_c3
  128. bool "Via/Cyrix C3 (Samuel/Ezra cores)"
  129. select BR2_X86_CPU_HAS_MMX
  130. depends on !BR2_x86_64
  131. config BR2_x86_c32
  132. bool "Via C3-2 (Nehemiah cores)"
  133. select BR2_X86_CPU_HAS_MMX
  134. select BR2_X86_CPU_HAS_SSE
  135. depends on !BR2_x86_64
  136. config BR2_x86_winchip_c6
  137. bool "IDT Winchip C6"
  138. select BR2_X86_CPU_HAS_MMX
  139. depends on !BR2_x86_64
  140. config BR2_x86_winchip2
  141. bool "IDT Winchip 2"
  142. select BR2_X86_CPU_HAS_MMX
  143. depends on !BR2_x86_64
  144. endchoice
  145. config BR2_ARCH
  146. default "i386" if BR2_x86_i386
  147. default "i486" if BR2_x86_i486
  148. default "i586" if BR2_x86_i586
  149. default "i586" if BR2_x86_pentium_mmx
  150. default "i586" if BR2_x86_geode
  151. default "i586" if BR2_x86_c3
  152. default "i686" if BR2_x86_c32
  153. default "i586" if BR2_x86_winchip_c6
  154. default "i586" if BR2_x86_winchip2
  155. default "i686" if BR2_x86_i686
  156. default "i686" if BR2_x86_pentium2
  157. default "i686" if BR2_x86_pentium3
  158. default "i686" if BR2_x86_pentium4
  159. default "i686" if BR2_x86_pentium_m
  160. default "i686" if BR2_x86_pentiumpro
  161. default "i686" if BR2_x86_prescott
  162. default "i686" if BR2_x86_nocona && BR2_i386
  163. default "i686" if BR2_x86_core2 && BR2_i386
  164. default "i686" if BR2_x86_atom && BR2_i386
  165. default "i686" if BR2_x86_opteron && BR2_i386
  166. default "i686" if BR2_x86_opteron_sse3 && BR2_i386
  167. default "i686" if BR2_x86_barcelona && BR2_i386
  168. default "i686" if BR2_x86_k6
  169. default "i686" if BR2_x86_k6_2
  170. default "i686" if BR2_x86_athlon
  171. default "i686" if BR2_x86_athlon_4
  172. default "x86_64" if BR2_x86_64
  173. default "i386" if BR2_x86_generic
  174. config BR2_ENDIAN
  175. default "LITTLE"
  176. config BR2_GCC_TARGET_TUNE
  177. default "i386" if BR2_x86_i386
  178. default "i486" if BR2_x86_i486
  179. default "i586" if BR2_x86_i586
  180. default "pentium-mmx" if BR2_x86_pentium_mmx
  181. default "i686" if BR2_x86_i686
  182. default "pentiumpro" if BR2_x86_pentiumpro
  183. default "pentium-m" if BR2_x86_pentium_m
  184. default "pentium2" if BR2_x86_pentium2
  185. default "pentium3" if BR2_x86_pentium3
  186. default "pentium4" if BR2_x86_pentium4
  187. default "prescott" if BR2_x86_prescott
  188. default "nocona" if BR2_x86_nocona
  189. default "core2" if BR2_x86_core2
  190. default "atom" if BR2_x86_atom
  191. default "k8" if BR2_x86_opteron
  192. default "k8-sse3" if BR2_x86_opteron_sse3
  193. default "barcelona" if BR2_x86_barcelona
  194. default "k6" if BR2_x86_k6
  195. default "k6-2" if BR2_x86_k6_2
  196. default "athlon" if BR2_x86_athlon
  197. default "athlon-4" if BR2_x86_athlon_4
  198. default "winchip-c6" if BR2_x86_winchip_c6
  199. default "winchip2" if BR2_x86_winchip2
  200. default "c3" if BR2_x86_c3
  201. default "c3-2" if BR2_x86_c32
  202. default "geode" if BR2_x86_geode
  203. default "generic" if BR2_x86_generic
  204. config BR2_GCC_TARGET_ARCH
  205. default "i386" if BR2_x86_i386
  206. default "i486" if BR2_x86_i486
  207. default "i586" if BR2_x86_i586
  208. default "pentium-mmx" if BR2_x86_pentium_mmx
  209. default "i686" if BR2_x86_i686
  210. default "pentiumpro" if BR2_x86_pentiumpro
  211. default "pentium-m" if BR2_x86_pentium_m
  212. default "pentium2" if BR2_x86_pentium2
  213. default "pentium3" if BR2_x86_pentium3
  214. default "pentium4" if BR2_x86_pentium4
  215. default "prescott" if BR2_x86_prescott
  216. default "nocona" if BR2_x86_nocona
  217. default "core2" if BR2_x86_core2
  218. default "atom" if BR2_x86_atom
  219. default "k8" if BR2_x86_opteron
  220. default "k8-sse3" if BR2_x86_opteron_sse3
  221. default "barcelona" if BR2_x86_barcelona
  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