Config.in.cpu 13 KB

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