Config.in.cpu 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  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. select ADK_TARGET_WITH_MMU
  50. config ADK_CPU_BFIN
  51. bool
  52. select ADK_TARGET_WITH_LT
  53. config ADK_CPU_BF512
  54. bool
  55. select ADK_TARGET_WITH_LT
  56. config ADK_CPU_BF514
  57. bool
  58. select ADK_TARGET_WITH_LT
  59. config ADK_CPU_BF516
  60. bool
  61. select ADK_TARGET_WITH_LT
  62. config ADK_CPU_BF518
  63. bool
  64. select ADK_TARGET_WITH_LT
  65. config ADK_CPU_BF522
  66. bool
  67. select ADK_TARGET_WITH_LT
  68. config ADK_CPU_BF523
  69. bool
  70. select ADK_TARGET_WITH_LT
  71. config ADK_CPU_BF524
  72. bool
  73. select ADK_TARGET_WITH_LT
  74. config ADK_CPU_C6X
  75. bool
  76. select ADK_TARGET_WITH_LT
  77. config ADK_CPU_CF
  78. bool
  79. config ADK_CPU_CF_5206
  80. bool
  81. select ADK_CPU_CF
  82. select ADK_TARGET_WITH_LT
  83. config ADK_CPU_CF_5206E
  84. bool
  85. select ADK_CPU_CF
  86. select ADK_TARGET_WITH_LT
  87. config ADK_CPU_CF_5208
  88. bool
  89. select ADK_CPU_CF
  90. select ADK_TARGET_WITH_LT
  91. config ADK_CPU_CF_5211A
  92. bool
  93. select ADK_CPU_CF
  94. select ADK_TARGET_WITH_LT
  95. config ADK_CPU_CF_5213
  96. bool
  97. select ADK_CPU_CF
  98. select ADK_TARGET_WITH_LT
  99. config ADK_CPU_CF_5216
  100. bool
  101. select ADK_CPU_CF
  102. select ADK_TARGET_WITH_LT
  103. config ADK_CPU_CF_5225
  104. bool
  105. select ADK_CPU_CF
  106. select ADK_TARGET_WITH_LT
  107. config ADK_CPU_CORTEX_M3
  108. bool
  109. select ADK_TARGET_WITH_LT
  110. config ADK_CPU_CORTEX_M4
  111. bool
  112. select ADK_TARGET_WITH_LT
  113. config ADK_CPU_CORTEX_A5
  114. bool
  115. select ADK_TARGET_WITH_NPTL
  116. select ADK_TARGET_WITH_MMU
  117. select ADK_TARGET_CPU_WITH_FPU_VFPV3
  118. select ADK_TARGET_CPU_WITH_NEON
  119. config ADK_CPU_CORTEX_A7
  120. bool
  121. select ADK_TARGET_WITH_NPTL
  122. select ADK_TARGET_WITH_MMU
  123. select ADK_TARGET_CPU_WITH_FPU_VFPV4
  124. select ADK_TARGET_CPU_WITH_NEON
  125. config ADK_CPU_CORTEX_A8
  126. bool
  127. select ADK_TARGET_WITH_NPTL
  128. select ADK_TARGET_WITH_MMU
  129. select ADK_TARGET_CPU_WITH_FPU_VFPV3
  130. select ADK_TARGET_CPU_WITH_NEON
  131. config ADK_CPU_CORTEX_A9
  132. bool
  133. select ADK_TARGET_WITH_NPTL
  134. select ADK_TARGET_WITH_MMU
  135. select ADK_TARGET_CPU_WITH_FPU_VFPV3
  136. select ADK_TARGET_CPU_WITH_NEON
  137. config ADK_CPU_CORTEX_A15
  138. bool
  139. select ADK_TARGET_WITH_NPTL
  140. select ADK_TARGET_WITH_MMU
  141. select ADK_TARGET_CPU_WITH_FPU_VFPV4
  142. select ADK_TARGET_CPU_WITH_NEON
  143. config ADK_CPU_CORTEX_A17
  144. bool
  145. select ADK_TARGET_WITH_NPTL
  146. select ADK_TARGET_WITH_MMU
  147. select ADK_TARGET_CPU_WITH_FPU_VFPV4
  148. select ADK_TARGET_CPU_WITH_NEON
  149. config ADK_CPU_CORTEX_A53
  150. bool
  151. select ADK_LINUX_64
  152. select ADK_TARGET_WITH_NPTL
  153. select ADK_TARGET_WITH_MMU
  154. config ADK_CPU_CORTEX_A57
  155. bool
  156. select ADK_LINUX_64
  157. select ADK_TARGET_WITH_NPTL
  158. select ADK_TARGET_WITH_MMU
  159. config ADK_CPU_CRIS_V10
  160. bool
  161. select ADK_TARGET_WITH_LT
  162. config ADK_CPU_CRIS_V32
  163. bool
  164. select ADK_TARGET_WITH_LT
  165. config ADK_CPU_GEODE
  166. bool
  167. select ADK_TARGET_WITH_NPTL
  168. select ADK_TARGET_WITH_MMU
  169. config ADK_CPU_I486
  170. bool
  171. select ADK_TARGET_WITH_NPTL
  172. select ADK_TARGET_WITH_MMU
  173. config ADK_CPU_I586
  174. bool
  175. select ADK_TARGET_WITH_NPTL
  176. select ADK_TARGET_WITH_MMU
  177. config ADK_CPU_I686
  178. bool
  179. select ADK_TARGET_WITH_NPTL
  180. select ADK_TARGET_WITH_MMU
  181. config ADK_CPU_LOONGSON2F
  182. bool
  183. select ADK_LINUX_64
  184. select ADK_TARGET_WITH_NPTL
  185. select ADK_TARGET_WITH_MMU
  186. config ADK_CPU_M68K
  187. bool
  188. select ADK_TARGET_WITH_LT if ADK_TARGET_LIB_UCLIBC
  189. select ADK_TARGET_WITH_LT if ADK_TARGET_LIB_UCLIBC_NG
  190. select ADK_TARGET_WITH_MMU if !ADK_LINUX_UCLINUX
  191. select ADK_TARGET_WITH_NPTL if ADK_TARGET_LIB_GLIBC
  192. config ADK_CPU_MIPS32
  193. bool
  194. select ADK_TARGET_WITH_NPTL
  195. select ADK_TARGET_WITH_MMU
  196. select ADK_TARGET_CPU_WITH_FPU
  197. config ADK_CPU_MIPS32R2
  198. bool
  199. select ADK_TARGET_WITH_NPTL
  200. select ADK_TARGET_WITH_MMU
  201. select ADK_TARGET_CPU_WITH_FPU
  202. config ADK_CPU_MIPS64
  203. bool
  204. select ADK_LINUX_64
  205. select ADK_TARGET_WITH_NPTL
  206. select ADK_TARGET_WITH_MMU
  207. config ADK_CPU_MIPS64R2
  208. bool
  209. select ADK_LINUX_64
  210. select ADK_TARGET_WITH_NPTL
  211. select ADK_TARGET_WITH_MMU
  212. config ADK_CPU_MICROBLAZE
  213. bool
  214. select ADK_TARGET_WITH_LT if ADK_TARGET_LIBC_UCLIBC_NG
  215. select ADK_TARGET_WITH_MMU if !ADK_LINUX_UCLINUX
  216. select ADK_TARGET_WITH_NPTL
  217. config ADK_CPU_NIOS2
  218. bool
  219. select ADK_TARGET_WITH_NPTL
  220. select ADK_TARGET_WITH_MMU
  221. config ADK_CPU_PARISC
  222. bool
  223. select ADK_TARGET_WITH_NPTL
  224. select ADK_TARGET_WITH_MMU
  225. config ADK_CPU_PENTIUM_M
  226. bool
  227. select ADK_TARGET_WITH_NPTL
  228. select ADK_TARGET_WITH_MMU
  229. config ADK_CPU_PPC
  230. bool
  231. select ADK_TARGET_WITH_NPTL
  232. select ADK_TARGET_WITH_MMU
  233. config ADK_CPU_PPC_440
  234. bool
  235. select ADK_TARGET_WITH_NPTL
  236. select ADK_TARGET_WITH_MMU
  237. config ADK_CPU_PPC64
  238. bool
  239. select ADK_LINUX_64
  240. select ADK_TARGET_WITH_NPTL
  241. select ADK_TARGET_WITH_MMU
  242. config ADK_CPU_SH4
  243. bool
  244. select ADK_TARGET_WITH_NPTL
  245. select ADK_TARGET_WITH_MMU
  246. config ADK_CPU_SPARC_V8
  247. bool
  248. select ADK_TARGET_WITH_NPTL
  249. select ADK_TARGET_WITH_MMU
  250. config ADK_CPU_SPARC_V9
  251. bool
  252. select ADK_LINUX_64
  253. select ADK_TARGET_WITH_NPTL
  254. select ADK_TARGET_WITH_MMU
  255. config ADK_CPU_TILE
  256. bool
  257. select ADK_TARGET_WITH_NPTL
  258. select ADK_TARGET_WITH_MMU
  259. config ADK_CPU_X86
  260. bool
  261. select ADK_TARGET_WITH_NPTL
  262. select ADK_TARGET_WITH_MMU
  263. config ADK_CPU_X86_64
  264. bool
  265. select ADK_LINUX_64
  266. select ADK_TARGET_WITH_NPTL
  267. select ADK_TARGET_WITH_MMU
  268. config ADK_CPU_XSCALE
  269. bool
  270. select ADK_TARGET_WITH_NPTL
  271. select ADK_TARGET_WITH_MMU
  272. config ADK_CPU_XTENSA
  273. bool
  274. select ADK_TARGET_WITH_NPTL
  275. select ADK_TARGET_WITH_MMU
  276. # CPU features
  277. config ADK_TARGET_CPU_WITH_FPU
  278. bool
  279. config ADK_TARGET_CPU_WITH_FPU_VFP
  280. bool
  281. select ADK_TARGET_CPU_WITH_FPU
  282. config ADK_TARGET_CPU_WITH_FPU_VFPV3
  283. bool
  284. select ADK_TARGET_CPU_WITH_FPU
  285. config ADK_TARGET_CPU_WITH_FPU_VFPV4
  286. bool
  287. select ADK_TARGET_CPU_WITH_FPU
  288. config ADK_TARGET_CPU_WITH_VT
  289. bool
  290. config ADK_TARGET_CPU_WITH_MTRR
  291. bool
  292. config ADK_TARGET_CPU_WITH_MMX
  293. bool
  294. config ADK_TARGET_CPU_WITH_MMXEXT
  295. bool
  296. config ADK_TARGET_CPU_WITH_SSE
  297. bool
  298. config ADK_TARGET_CPU_WITH_SSE2
  299. bool
  300. config ADK_TARGET_CPU_WITH_SSE3
  301. bool
  302. config ADK_TARGET_CPU_WITH_SSSE3
  303. bool
  304. config ADK_TARGET_CPU_WITH_IWMMXT
  305. bool
  306. config ADK_TARGET_CPU_WITH_NEON
  307. bool
  308. config ADK_TARGET_CPU_WITH_HT
  309. bool
  310. config ADK_TARGET_CPU_WITH_3DNOW
  311. bool
  312. config ADK_TARGET_CPU_WITH_3DNOWEXT
  313. bool
  314. config ADK_TARGET_GCC_CPU
  315. string
  316. default "440" if ADK_CPU_PPC_440
  317. default "5206" if ADK_CPU_CF_5206
  318. default "5206e" if ADK_CPU_CF_5206E
  319. default "5208" if ADK_CPU_CF_5208
  320. default "5211a" if ADK_CPU_CF_5211A
  321. default "5213" if ADK_CPU_CF_5213
  322. default "5216" if ADK_CPU_CF_5216
  323. default "5225" if ADK_CPU_CF_5225
  324. default "arc700" if ADK_CPU_ARC700
  325. default "archs" if ADK_CPU_ARC_HS
  326. default "arm1176jzf-s" if ADK_CPU_ARM1176JZF_S
  327. default "arm926ej-s" if ADK_CPU_ARM926EJ_S
  328. default "armv8-a" if ADK_CPU_ARMV8
  329. default "cortex-a5" if ADK_CPU_CORTEX_A5
  330. default "cortex-a7" if ADK_CPU_CORTEX_A7
  331. default "cortex-a8" if ADK_CPU_CORTEX_A8
  332. default "cortex-a9" if ADK_CPU_CORTEX_A9
  333. default "cortex-a15" if ADK_CPU_CORTEX_A15
  334. default "cortex-a17" if ADK_CPU_CORTEX_A17
  335. default "cortex-a53" if ADK_CPU_CORTEX_A53
  336. default "cortex-a57" if ADK_CPU_CORTEX_A57
  337. default "cortex-m3" if ADK_CPU_CORTEX_M3
  338. default "cortex-m4" if ADK_CPU_CORTEX_M4
  339. default "powerpc" if ADK_CPU_PPC
  340. default "powerpc64" if ADK_CPU_PPC64
  341. default "ultrasparc" if ADK_CPU_SPARC_V9
  342. default "v8" if ADK_CPU_SPARC_V8
  343. default "xscale" if ADK_CPU_XSCALE
  344. config ADK_TARGET_GCC_ARCH
  345. string
  346. default "amdfam10" if ADK_CPU_AMDFAM10
  347. default "athlon" if ADK_CPU_ATHLON
  348. default "atom" if ADK_CPU_ATOM
  349. default "geode" if ADK_CPU_GEODE
  350. default "i486" if ADK_CPU_I486
  351. default "i586" if ADK_CPU_I586
  352. default "i686" if ADK_CPU_I686
  353. default "loongson2f" if ADK_CPU_LOONGSON2F
  354. default "mips32" if ADK_CPU_MIPS32
  355. default "mips32r2" if ADK_CPU_MIPS32R2
  356. default "mips64" if ADK_CPU_MIPS64
  357. default "mips64r2" if ADK_CPU_MIPS64R2
  358. default "pentium-m" if ADK_CPU_PENTIUM_M
  359. default "x86-64" if ADK_CPU_X86_64
  360. config ADK_TARGET_CPU_FLAGS
  361. string
  362. default "-mcpu=bf512" if ADK_CPU_BF512
  363. default "-mcpu=bf514" if ADK_CPU_BF514
  364. default "-mcpu=bf516" if ADK_CPU_BF516
  365. default "-mcpu=bf518" if ADK_CPU_BF518
  366. default "-mcpu=bf522" if ADK_CPU_BF522
  367. default "-mcpu=bf523" if ADK_CPU_BF523
  368. default "-mcpu=bf524" if ADK_CPU_BF524
  369. default "-mcpu=v10" if ADK_CPU_CRIS_V10
  370. default "-mcpu=v32" if ADK_CPU_CRIS_V32
  371. default "-mcpu=v7.10.d" if ADK_CPU_MICROBLAZE
  372. config ADK_TARGET_CPU_TYPE
  373. string
  374. depends on ADK_TARGET_TOOLCHAIN
  375. default "arc700" if ADK_TARGET_ARCH_ARC && ADK_CPU_ARC700
  376. default "archs" if ADK_TARGET_ARCH_ARC && ADK_CPU_ARC_HS
  377. default "bf512" if ADK_TARGET_ARCH_BFIN && ADK_CPU_BF512
  378. default "bf514" if ADK_TARGET_ARCH_BFIN && ADK_CPU_BF514
  379. default "bf516" if ADK_TARGET_ARCH_BFIN && ADK_CPU_BF516
  380. default "bf518" if ADK_TARGET_ARCH_BFIN && ADK_CPU_BF518
  381. default "bf522" if ADK_TARGET_ARCH_BFIN && ADK_CPU_BF522
  382. default "bf523" if ADK_TARGET_ARCH_BFIN && ADK_CPU_BF523
  383. default "bf524" if ADK_TARGET_ARCH_BFIN && ADK_CPU_BF524
  384. default "5206" if ADK_TARGET_ARCH_M68K && ADK_CPU_CF_5206
  385. default "5206e" if ADK_TARGET_ARCH_M68K && ADK_CPU_CF_5206E
  386. default "5208" if ADK_TARGET_ARCH_M68K && ADK_CPU_CF_5208
  387. default "5211a" if ADK_TARGET_ARCH_M68K && ADK_CPU_CF_5211A
  388. default "5213" if ADK_TARGET_ARCH_M68K && ADK_CPU_CF_5213
  389. default "5216" if ADK_TARGET_ARCH_M68K && ADK_CPU_CF_5216
  390. default "5225" if ADK_TARGET_ARCH_M68K && ADK_CPU_CF_5225
  391. default "cortex_a5" if ADK_TARGET_ARCH_ARM && ADK_CPU_CORTEX_A5
  392. default "cortex_a7" if ADK_TARGET_ARCH_ARM && ADK_CPU_CORTEX_A7
  393. default "cortex_a8" if ADK_TARGET_ARCH_ARM && ADK_CPU_CORTEX_A8
  394. default "cortex_a9" if ADK_TARGET_ARCH_ARM && ADK_CPU_CORTEX_A9
  395. default "cortex_a15" if ADK_TARGET_ARCH_ARM && ADK_CPU_CORTEX_A15
  396. default "cortex_a17" if ADK_TARGET_ARCH_ARM && ADK_CPU_CORTEX_A17
  397. default "cortex_m3" if ADK_TARGET_ARCH_ARM && ADK_CPU_CORTEX_M3
  398. default "cortex_m4" if ADK_TARGET_ARCH_ARM && ADK_CPU_CORTEX_M4
  399. default "arm1176jzf_s" if ADK_TARGET_ARCH_ARM && ADK_CPU_ARM1176JZF_S
  400. default "arm926ej_s" if ADK_TARGET_ARCH_ARM && ADK_CPU_ARM926EJ_S
  401. default "cortex_a53" if ADK_TARGET_ARCH_AARCH64 && ADK_CPU_CORTEX_A53
  402. default "cortex_a57" if ADK_TARGET_ARCH_AARCH64 && ADK_CPU_CORTEX_A57
  403. config ADK_TARGET_CPU_ARCH
  404. string
  405. default "aarch64" if ADK_TARGET_ARCH_AARCH64 && ADK_TARGET_LITTLE_ENDIAN
  406. default "alpha" if ADK_TARGET_ARCH_ALPHA
  407. default "arm" if ADK_TARGET_ARCH_ARM && ADK_TARGET_LITTLE_ENDIAN
  408. default "armeb" if ADK_TARGET_ARCH_ARM && ADK_TARGET_BIG_ENDIAN
  409. default "arc" if ADK_TARGET_ARCH_ARC && ADK_TARGET_LITTLE_ENDIAN
  410. default "arceb" if ADK_TARGET_ARCH_ARC && ADK_TARGET_BIG_ENDIAN
  411. default "avr32" if ADK_CPU_AVR32
  412. default "bfin" if ADK_TARGET_ARCH_BFIN
  413. default "c6x" if ADK_CPU_C6X
  414. default "cris" if ADK_CPU_CRIS_V10
  415. default "crisv32" if ADK_CPU_CRIS_V32
  416. default "i486" if ADK_CPU_I486
  417. default "i586" if ADK_CPU_I586
  418. default "i686" if ADK_CPU_I686
  419. default "i586" if ADK_CPU_GEODE
  420. default "i686" if ADK_CPU_PENTIUM_M
  421. default "i686" if ADK_CPU_ATOM
  422. default "i686" if ADK_CPU_ATHLON
  423. default "hppa" if ADK_TARGET_ARCH_HPPA
  424. default "m68k" if ADK_TARGET_ARCH_M68K
  425. default "microblaze" if ADK_TARGET_ARCH_MICROBLAZE && ADK_TARGET_BIG_ENDIAN
  426. default "microblazeel" if ADK_TARGET_ARCH_MICROBLAZE && ADK_TARGET_LITTLE_ENDIAN
  427. default "mips64" if ADK_TARGET_ARCH_MIPS64 && ADK_TARGET_BIG_ENDIAN
  428. default "mips64el" if ADK_TARGET_ARCH_MIPS64 && ADK_TARGET_LITTLE_ENDIAN
  429. default "mips" if ADK_TARGET_ARCH_MIPS && ADK_TARGET_BIG_ENDIAN
  430. default "mipsel" if ADK_TARGET_ARCH_MIPS && ADK_TARGET_LITTLE_ENDIAN
  431. default "nios2" if ADK_TARGET_ARCH_NIOS2
  432. default "ppc" if ADK_CPU_PPC
  433. default "ppc" if ADK_CPU_PPC_440
  434. default "ppc64" if ADK_CPU_PPC64
  435. default "sh4" if ADK_TARGET_ARCH_SH && ADK_TARGET_LITTLE_ENDIAN
  436. default "sh4eb" if ADK_TARGET_ARCH_SH && ADK_TARGET_BIG_ENDIAN
  437. default "sparc" if ADK_TARGET_ARCH_SPARC
  438. default "sparc64" if ADK_TARGET_ARCH_SPARC64
  439. default "tilegx" if ADK_CPU_TILE
  440. default "x86_64" if ADK_CPU_X86_64
  441. default "x86_64" if ADK_CPU_AMDFAM10
  442. default "xtensa" if ADK_TARGET_ARCH_XTENSA