Config.in.cpu 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. # CPU
  4. config ADK_CPU_ALPHA
  5. bool
  6. select ADK_LINUX_64
  7. select ADK_TARGET_WITH_NPTL
  8. select ADK_TARGET_WITH_MMU
  9. config ADK_CPU_AMDFAM10
  10. bool
  11. select ADK_LINUX_64
  12. select ADK_TARGET_CPU_WITH_VT
  13. select ADK_TARGET_WITH_NPTL
  14. select ADK_TARGET_WITH_MMU
  15. config ADK_CPU_ARC700
  16. bool
  17. select ADK_TARGET_WITH_NPTL
  18. select ADK_TARGET_WITH_MMU
  19. config ADK_CPU_ARC_HS
  20. bool
  21. select ADK_TARGET_WITH_NPTL
  22. select ADK_TARGET_WITH_MMU
  23. config ADK_CPU_ARM1176JZF_S
  24. bool
  25. select ADK_TARGET_WITH_NPTL
  26. select ADK_TARGET_WITH_MMU
  27. select ADK_TARGET_CPU_WITH_FPU_VFP
  28. config ADK_CPU_ARM926EJ_S
  29. bool
  30. select ADK_TARGET_WITH_NPTL
  31. select ADK_TARGET_WITH_MMU
  32. config ADK_CPU_ARMV8
  33. bool
  34. select ADK_LINUX_64
  35. select ADK_TARGET_WITH_NPTL
  36. select ADK_TARGET_WITH_MMU
  37. config ADK_CPU_ATHLON
  38. bool
  39. select ADK_LINUX_64
  40. select ADK_TARGET_WITH_NPTL
  41. select ADK_TARGET_WITH_MMU
  42. config ADK_CPU_ATOM
  43. bool
  44. select ADK_TARGET_WITH_NPTL
  45. select ADK_TARGET_WITH_MMU
  46. config ADK_CPU_AVR32
  47. bool
  48. select ADK_TARGET_WITH_LT
  49. config ADK_CPU_BFIN
  50. bool
  51. select ADK_TARGET_WITH_LT
  52. config ADK_CPU_C6X
  53. bool
  54. select ADK_TARGET_WITH_LT
  55. config ADK_CPU_CF
  56. bool
  57. config ADK_CPU_CF_5208
  58. bool
  59. select ADK_CPU_CF
  60. select ADK_TARGET_WITH_LT
  61. config ADK_CPU_CORTEX_M3
  62. bool
  63. select ADK_TARGET_WITH_LT
  64. config ADK_CPU_CORTEX_M4
  65. bool
  66. select ADK_TARGET_WITH_LT
  67. config ADK_CPU_CORTEX_A5
  68. bool
  69. select ADK_TARGET_WITH_NPTL
  70. select ADK_TARGET_WITH_MMU
  71. select ADK_TARGET_CPU_WITH_FPU_VFPV3
  72. select ADK_TARGET_CPU_WITH_NEON
  73. config ADK_CPU_CORTEX_A7
  74. bool
  75. select ADK_TARGET_WITH_NPTL
  76. select ADK_TARGET_WITH_MMU
  77. select ADK_TARGET_CPU_WITH_FPU_VFPV4
  78. select ADK_TARGET_CPU_WITH_NEON
  79. config ADK_CPU_CORTEX_A8
  80. bool
  81. select ADK_TARGET_WITH_NPTL
  82. select ADK_TARGET_WITH_MMU
  83. select ADK_TARGET_CPU_WITH_FPU_VFPV3
  84. select ADK_TARGET_CPU_WITH_NEON
  85. config ADK_CPU_CORTEX_A9
  86. bool
  87. select ADK_TARGET_WITH_NPTL
  88. select ADK_TARGET_WITH_MMU
  89. select ADK_TARGET_CPU_WITH_FPU_VFPV3
  90. select ADK_TARGET_CPU_WITH_NEON
  91. config ADK_CPU_CORTEX_A15
  92. bool
  93. select ADK_TARGET_WITH_NPTL
  94. select ADK_TARGET_WITH_MMU
  95. select ADK_TARGET_CPU_WITH_FPU_VFPV4
  96. select ADK_TARGET_CPU_WITH_NEON
  97. config ADK_CPU_CORTEX_A17
  98. bool
  99. select ADK_TARGET_WITH_NPTL
  100. select ADK_TARGET_WITH_MMU
  101. select ADK_TARGET_CPU_WITH_FPU_VFPV4
  102. select ADK_TARGET_CPU_WITH_NEON
  103. config ADK_CPU_CORTEX_A53
  104. bool
  105. select ADK_LINUX_64
  106. select ADK_TARGET_WITH_NPTL
  107. select ADK_TARGET_WITH_MMU
  108. config ADK_CPU_CORTEX_A57
  109. bool
  110. select ADK_LINUX_64
  111. select ADK_TARGET_WITH_NPTL
  112. select ADK_TARGET_WITH_MMU
  113. config ADK_CPU_CRIS_V10
  114. bool
  115. select ADK_TARGET_WITH_LT
  116. config ADK_CPU_CRIS_V32
  117. bool
  118. select ADK_TARGET_WITH_LT
  119. config ADK_CPU_GEODE
  120. bool
  121. select ADK_TARGET_WITH_NPTL
  122. select ADK_TARGET_WITH_MMU
  123. config ADK_CPU_I486
  124. bool
  125. select ADK_TARGET_WITH_NPTL
  126. select ADK_TARGET_WITH_MMU
  127. config ADK_CPU_I586
  128. bool
  129. select ADK_TARGET_WITH_NPTL
  130. select ADK_TARGET_WITH_MMU
  131. config ADK_CPU_I686
  132. bool
  133. select ADK_TARGET_WITH_NPTL
  134. select ADK_TARGET_WITH_MMU
  135. config ADK_CPU_LOONGSON2F
  136. bool
  137. select ADK_LINUX_64
  138. select ADK_TARGET_WITH_NPTL
  139. select ADK_TARGET_WITH_MMU
  140. config ADK_CPU_M68K
  141. bool
  142. select ADK_TARGET_WITH_LT if ADK_TARGET_LIB_UCLIBC
  143. select ADK_TARGET_WITH_LT if ADK_TARGET_LIB_UCLIBC_NG
  144. select ADK_TARGET_WITH_MMU if !ADK_LINUX_UCLINUX
  145. select ADK_TARGET_WITH_NPTL if ADK_TARGET_LIB_GLIBC
  146. config ADK_CPU_MIPS32
  147. bool
  148. select ADK_TARGET_WITH_NPTL
  149. select ADK_TARGET_WITH_MMU
  150. select ADK_TARGET_CPU_WITH_FPU
  151. config ADK_CPU_MIPS32R2
  152. bool
  153. select ADK_TARGET_WITH_NPTL
  154. select ADK_TARGET_WITH_MMU
  155. select ADK_TARGET_CPU_WITH_FPU
  156. config ADK_CPU_MIPS64
  157. bool
  158. select ADK_LINUX_64
  159. select ADK_TARGET_WITH_NPTL
  160. select ADK_TARGET_WITH_MMU
  161. config ADK_CPU_MIPS64R2
  162. bool
  163. select ADK_LINUX_64
  164. select ADK_TARGET_WITH_NPTL
  165. select ADK_TARGET_WITH_MMU
  166. config ADK_CPU_MICROBLAZE
  167. bool
  168. select ADK_TARGET_WITH_LT if ADK_TARGET_LIBC_UCLIBC_NG
  169. select ADK_TARGET_WITH_MMU if !ADK_LINUX_UCLINUX
  170. select ADK_TARGET_WITH_NPTL
  171. config ADK_CPU_NIOS2
  172. bool
  173. select ADK_TARGET_WITH_NPTL
  174. select ADK_TARGET_WITH_MMU
  175. config ADK_CPU_PARISC
  176. bool
  177. select ADK_TARGET_WITH_NPTL
  178. select ADK_TARGET_WITH_MMU
  179. config ADK_CPU_PENTIUM_M
  180. bool
  181. select ADK_TARGET_WITH_NPTL
  182. select ADK_TARGET_WITH_MMU
  183. config ADK_CPU_PPC
  184. bool
  185. select ADK_TARGET_WITH_NPTL
  186. select ADK_TARGET_WITH_MMU
  187. config ADK_CPU_PPC_440
  188. bool
  189. select ADK_TARGET_WITH_NPTL
  190. select ADK_TARGET_WITH_MMU
  191. config ADK_CPU_PPC64
  192. bool
  193. select ADK_LINUX_64
  194. select ADK_TARGET_WITH_NPTL
  195. select ADK_TARGET_WITH_MMU
  196. config ADK_CPU_SH4
  197. bool
  198. select ADK_TARGET_WITH_NPTL
  199. select ADK_TARGET_WITH_MMU
  200. config ADK_CPU_SPARC_V8
  201. bool
  202. select ADK_TARGET_WITH_NPTL
  203. select ADK_TARGET_WITH_MMU
  204. config ADK_CPU_SPARC_V9
  205. bool
  206. select ADK_LINUX_64
  207. select ADK_TARGET_WITH_NPTL
  208. select ADK_TARGET_WITH_MMU
  209. config ADK_CPU_TILE
  210. bool
  211. select ADK_TARGET_WITH_NPTL
  212. select ADK_TARGET_WITH_MMU
  213. config ADK_CPU_X86
  214. bool
  215. select ADK_TARGET_WITH_NPTL
  216. select ADK_TARGET_WITH_MMU
  217. config ADK_CPU_X86_64
  218. bool
  219. select ADK_LINUX_64
  220. select ADK_TARGET_WITH_NPTL
  221. select ADK_TARGET_WITH_MMU
  222. config ADK_CPU_XSCALE
  223. bool
  224. select ADK_TARGET_WITH_NPTL
  225. select ADK_TARGET_WITH_MMU
  226. config ADK_CPU_XTENSA
  227. bool
  228. select ADK_TARGET_WITH_NPTL
  229. select ADK_TARGET_WITH_MMU
  230. # CPU features
  231. config ADK_TARGET_CPU_WITH_FPU
  232. bool
  233. config ADK_TARGET_CPU_WITH_FPU_VFP
  234. bool
  235. select ADK_TARGET_CPU_WITH_FPU
  236. config ADK_TARGET_CPU_WITH_FPU_VFPV3
  237. bool
  238. select ADK_TARGET_CPU_WITH_FPU
  239. config ADK_TARGET_CPU_WITH_FPU_VFPV4
  240. bool
  241. select ADK_TARGET_CPU_WITH_FPU
  242. config ADK_TARGET_CPU_WITH_VT
  243. bool
  244. config ADK_TARGET_CPU_WITH_MTRR
  245. bool
  246. config ADK_TARGET_CPU_WITH_MMX
  247. bool
  248. config ADK_TARGET_CPU_WITH_MMXEXT
  249. bool
  250. config ADK_TARGET_CPU_WITH_SSE
  251. bool
  252. config ADK_TARGET_CPU_WITH_SSE2
  253. bool
  254. config ADK_TARGET_CPU_WITH_SSE3
  255. bool
  256. config ADK_TARGET_CPU_WITH_SSSE3
  257. bool
  258. config ADK_TARGET_CPU_WITH_IWMMXT
  259. bool
  260. config ADK_TARGET_CPU_WITH_NEON
  261. bool
  262. config ADK_TARGET_CPU_WITH_HT
  263. bool
  264. config ADK_TARGET_CPU_WITH_3DNOW
  265. bool
  266. config ADK_TARGET_CPU_WITH_3DNOWEXT
  267. bool
  268. config ADK_TARGET_GCC_CPU
  269. string
  270. default "440" if ADK_CPU_PPC_440
  271. default "5208" if ADK_CPU_CF_5208
  272. default "arc700" if ADK_CPU_ARC700
  273. default "archs" if ADK_CPU_ARC_HS
  274. default "arm1176jzf-s" if ADK_CPU_ARM1176JZF_S
  275. default "arm926ej-s" if ADK_CPU_ARM926EJ_S
  276. default "armv8-a" if ADK_CPU_ARMV8
  277. default "cortex-a5" if ADK_CPU_CORTEX_A5
  278. default "cortex-a7" if ADK_CPU_CORTEX_A7
  279. default "cortex-a8" if ADK_CPU_CORTEX_A8
  280. default "cortex-a9" if ADK_CPU_CORTEX_A9
  281. default "cortex-a15" if ADK_CPU_CORTEX_A15
  282. default "cortex-a17" if ADK_CPU_CORTEX_A17
  283. default "cortex-a53" if ADK_CPU_CORTEX_A53
  284. default "cortex-a57" if ADK_CPU_CORTEX_A57
  285. default "cortex-m3" if ADK_CPU_CORTEX_M3
  286. default "cortex-m4" if ADK_CPU_CORTEX_M4
  287. default "powerpc" if ADK_CPU_PPC
  288. default "powerpc64" if ADK_CPU_PPC64
  289. default "ultrasparc" if ADK_CPU_SPARC_V9
  290. default "v8" if ADK_CPU_SPARC_V8
  291. default "xscale" if ADK_CPU_XSCALE
  292. config ADK_TARGET_GCC_ARCH
  293. string
  294. default "amdfam10" if ADK_CPU_AMDFAM10
  295. default "athlon" if ADK_CPU_ATHLON
  296. default "atom" if ADK_CPU_ATOM
  297. default "geode" if ADK_CPU_GEODE
  298. default "i486" if ADK_CPU_I486
  299. default "i586" if ADK_CPU_I586
  300. default "i686" if ADK_CPU_I686
  301. default "loongson2f" if ADK_CPU_LOONGSON2F
  302. default "mips32" if ADK_CPU_MIPS32
  303. default "mips32r2" if ADK_CPU_MIPS32R2
  304. default "mips64" if ADK_CPU_MIPS64
  305. default "mips64r2" if ADK_CPU_MIPS64R2
  306. default "pentium-m" if ADK_CPU_PENTIUM_M
  307. default "x86-64" if ADK_CPU_X86_64
  308. config ADK_TARGET_CPU_FLAGS
  309. string
  310. default "-mcpu=v10" if ADK_CPU_CRIS_V10
  311. default "-mcpu=v32" if ADK_CPU_CRIS_V32
  312. default "-mcpu=v7.10.d" if ADK_CPU_MICROBLAZE
  313. config ADK_TARGET_CPU_TYPE
  314. string
  315. default "arc700" if ADK_TARGET_ARCH_ARC && ADK_CPU_ARC700
  316. default "archs" if ADK_TARGET_ARCH_ARC && ADK_CPU_ARC_HS
  317. default "cortex_a5" if ADK_TARGET_ARCH_ARM && ADK_CPU_CORTEX_A5
  318. default "cortex_a7" if ADK_TARGET_ARCH_ARM && ADK_CPU_CORTEX_A7
  319. default "cortex_a8" if ADK_TARGET_ARCH_ARM && ADK_CPU_CORTEX_A8
  320. default "cortex_a9" if ADK_TARGET_ARCH_ARM && ADK_CPU_CORTEX_A9
  321. default "cortex_a15" if ADK_TARGET_ARCH_ARM && ADK_CPU_CORTEX_A15
  322. default "cortex_a17" if ADK_TARGET_ARCH_ARM && ADK_CPU_CORTEX_A17
  323. default "cortex_m3" if ADK_TARGET_ARCH_ARM && ADK_CPU_CORTEX_M3
  324. default "cortex_m4" if ADK_TARGET_ARCH_ARM && ADK_CPU_CORTEX_M4
  325. default "arm1176jzf_s" if ADK_TARGET_ARCH_ARM && ADK_CPU_ARM1176JZF_S
  326. default "arm926ej_s" if ADK_TARGET_ARCH_ARM && ADK_CPU_ARM926EJ_S
  327. default "cortex_a53" if ADK_TARGET_ARCH_AARCH64 && ADK_CPU_CORTEX_A53
  328. default "cortex_a57" if ADK_TARGET_ARCH_AARCH64 && ADK_CPU_CORTEX_A57
  329. config ADK_TARGET_CPU_ARCH
  330. string
  331. default "aarch64" if ADK_TARGET_ARCH_AARCH64 && ADK_TARGET_LITTLE_ENDIAN
  332. default "alpha" if ADK_TARGET_ARCH_ALPHA
  333. default "arm" if ADK_TARGET_ARCH_ARM && ADK_TARGET_LITTLE_ENDIAN
  334. default "armeb" if ADK_TARGET_ARCH_ARM && ADK_TARGET_BIG_ENDIAN
  335. default "arc" if ADK_TARGET_ARCH_ARC && ADK_TARGET_LITTLE_ENDIAN
  336. default "arceb" if ADK_TARGET_ARCH_ARC && ADK_TARGET_BIG_ENDIAN
  337. default "avr32" if ADK_CPU_AVR32
  338. default "bfin" if ADK_CPU_BFIN
  339. default "c6x" if ADK_CPU_C6X
  340. default "cris" if ADK_CPU_CRIS_V10
  341. default "crisv32" if ADK_CPU_CRIS_V32
  342. default "i486" if ADK_CPU_I486
  343. default "i586" if ADK_CPU_I586
  344. default "i686" if ADK_CPU_I686
  345. default "i586" if ADK_CPU_GEODE
  346. default "i686" if ADK_CPU_PENTIUM_M
  347. default "i686" if ADK_CPU_ATOM
  348. default "i686" if ADK_CPU_ATHLON
  349. default "hppa" if ADK_TARGET_ARCH_HPPA
  350. default "m68k" if ADK_TARGET_ARCH_M68K
  351. default "microblaze" if ADK_TARGET_ARCH_MICROBLAZE && ADK_TARGET_BIG_ENDIAN
  352. default "microblazeel" if ADK_TARGET_ARCH_MICROBLAZE && ADK_TARGET_LITTLE_ENDIAN
  353. default "mips64" if ADK_TARGET_ARCH_MIPS64 && ADK_TARGET_BIG_ENDIAN
  354. default "mips64el" if ADK_TARGET_ARCH_MIPS64 && ADK_TARGET_LITTLE_ENDIAN
  355. default "mips" if ADK_TARGET_ARCH_MIPS && ADK_TARGET_BIG_ENDIAN
  356. default "mipsel" if ADK_TARGET_ARCH_MIPS && ADK_TARGET_LITTLE_ENDIAN
  357. default "nios2" if ADK_TARGET_ARCH_NIOS2
  358. default "ppc" if ADK_CPU_PPC
  359. default "ppc" if ADK_CPU_PPC_440
  360. default "ppc64" if ADK_CPU_PPC64
  361. default "sh4" if ADK_TARGET_ARCH_SH && ADK_TARGET_LITTLE_ENDIAN
  362. default "sh4eb" if ADK_TARGET_ARCH_SH && ADK_TARGET_BIG_ENDIAN
  363. default "sparc" if ADK_TARGET_ARCH_SPARC
  364. default "sparc64" if ADK_TARGET_ARCH_SPARC64
  365. default "tilegx" if ADK_CPU_TILE
  366. default "x86_64" if ADK_CPU_X86_64
  367. default "x86_64" if ADK_CPU_AMDFAM10
  368. default "xtensa" if ADK_TARGET_ARCH_XTENSA