Config.in.toolchain 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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. menu "Toolchain specific settings"
  4. depends on !ADK_CHOOSE_TARGET_ARCH && !ADK_CHOOSE_TARGET_SYSTEM
  5. config ADK_VENDOR
  6. string "Vendor name"
  7. default "openadk"
  8. help
  9. Vendor string is used for toolchain.
  10. choice
  11. prompt "GCC version"
  12. config ADK_TOOLCHAIN_GCC_4_4_7
  13. prompt "4.4.7"
  14. boolean
  15. depends on ADK_LINUX_AVR32
  16. config ADK_TOOLCHAIN_GCC_4_5_4
  17. prompt "4.5.4"
  18. boolean
  19. depends on ADK_LINUX_BFIN
  20. config ADK_TOOLCHAIN_GCC_4_7_4
  21. prompt "4.7.4"
  22. boolean
  23. depends on ADK_LINUX_CRIS
  24. config ADK_TOOLCHAIN_GCC_4_8_0_ARC
  25. prompt "4.8.0-arc"
  26. boolean
  27. depends on ADK_LINUX_ARC
  28. config ADK_TOOLCHAIN_GCC_4_8_3
  29. prompt "4.8.3"
  30. boolean
  31. depends on !ADK_LINUX_BFIN
  32. depends on !ADK_LINUX_AARCH64
  33. depends on !ADK_LINUX_ARC
  34. depends on !ADK_LINUX_AVR32
  35. depends on !ADK_LINUX_CRIS
  36. config ADK_TOOLCHAIN_GCC_4_9_1
  37. prompt "4.9.1"
  38. boolean
  39. depends on !ADK_LINUX_BFIN
  40. depends on !ADK_LINUX_ARC
  41. depends on !ADK_LINUX_AVR32
  42. depends on !ADK_LINUX_CRIS
  43. config ADK_TOOLCHAIN_GCC_GIT
  44. prompt "git"
  45. boolean
  46. select ADK_DISABLE_CHECKSUM
  47. depends on !ADK_LINUX_BFIN
  48. depends on !ADK_LINUX_ARC
  49. depends on !ADK_LINUX_AVR32
  50. depends on !ADK_LINUX_CRIS
  51. endchoice
  52. choice
  53. prompt "Binutils version"
  54. depends on !ADK_CHOOSE_TARGET_SYSTEM && !ADK_CHOOSE_TARGET_ARCH
  55. config ADK_TOOLCHAIN_BINUTILS_2_20_1
  56. prompt "2.20.1"
  57. boolean
  58. depends on ADK_LINUX_AVR32
  59. config ADK_TOOLCHAIN_BINUTILS_2_22
  60. prompt "2.22"
  61. boolean
  62. depends on ADK_LINUX_BFIN || ADK_LINUX_CRIS
  63. config ADK_TOOLCHAIN_BINUTILS_2_23_ARC
  64. prompt "2.23-arc"
  65. boolean
  66. depends on ADK_LINUX_ARC
  67. config ADK_TOOLCHAIN_BINUTILS_2_24
  68. prompt "2.24"
  69. boolean
  70. depends on !ADK_LINUX_BFIN
  71. depends on !ADK_LINUX_ARC
  72. depends on !ADK_LINUX_AVR32
  73. depends on !ADK_LINUX_CRIS
  74. config ADK_TOOLCHAIN_BINUTILS_GIT
  75. prompt "git"
  76. boolean
  77. select ADK_DISABLE_CHECKSUM
  78. depends on !ADK_LINUX_BFIN
  79. depends on !ADK_LINUX_ARC
  80. depends on !ADK_LINUX_AVR32
  81. depends on !ADK_LINUX_CRIS
  82. endchoice
  83. config ADK_TARGET_CFLAGS_OPT
  84. string
  85. default "-Os -pipe" if ADK_TARGET_CFLAGS_OPT_OS
  86. default "-O2 -pipe" if ADK_TARGET_CFLAGS_OPT_O2
  87. default "-O3 -pipe" if ADK_TARGET_CFLAGS_OPT_O3
  88. default "-O0 -pipe" if ADK_TARGET_CFLAGS_OPT_O0
  89. choice
  90. prompt "Optimization level"
  91. boolean
  92. config ADK_TARGET_CFLAGS_OPT_OS
  93. prompt "optimize for size (-Os)"
  94. config ADK_TARGET_CFLAGS_OPT_O2
  95. prompt "optimize for performance (-O2)"
  96. config ADK_TARGET_CFLAGS_OPT_O3
  97. prompt "optimize for performance (-O3)"
  98. config ADK_TARGET_CFLAGS_OPT_O0
  99. prompt "no optimization (-O0)"
  100. endchoice
  101. config ADK_LINUX_ARM_WITH_THUMB
  102. prompt "Use THUMB2 ARM mode"
  103. boolean
  104. depends on ADK_CPU_CORTEX_A9 && ADK_TARGET_LIB_GLIBC
  105. select ADK_KERNEL_THUMB2_KERNEL
  106. default n
  107. config ADK_TOOLCHAIN_WITH_SSP
  108. boolean
  109. default n
  110. config ADK_TARGET_USE_SSP
  111. prompt "Use Stack Smashing Protection for all packages"
  112. boolean
  113. select ADK_TOOLCHAIN_WITH_SSP
  114. default n
  115. config ADK_TARGET_USE_PIE
  116. prompt "Use Position Independent Executable for packages with have support for it"
  117. boolean
  118. default n
  119. config ADK_TOOLCHAIN_WITH_LTO
  120. boolean
  121. default n
  122. config ADK_TARGET_USE_LTO
  123. prompt "Use Link Time Optimization for all packages"
  124. boolean
  125. select ADK_TOOLCHAIN_WITH_LTO
  126. default n
  127. config ADK_TARGET_USE_LD_RELRO
  128. prompt "Use LD read-only (-z relro) relocations for all packages"
  129. boolean
  130. default n
  131. config ADK_TARGET_USE_LD_BIND_NOW
  132. prompt "Use LD bind now (-z now) for all packages"
  133. boolean
  134. default n
  135. config ADK_TARGET_USE_LD_GC
  136. prompt "Use LD garbage collection for all packages"
  137. boolean
  138. default n
  139. config ADK_TOOLCHAIN_WITH_GOLD
  140. boolean
  141. default n
  142. config ADK_TARGET_USE_GOLD
  143. prompt "Use GOLD as linker for all packages"
  144. boolean
  145. select ADK_TOOLCHAIN_WITH_GOLD
  146. depends on !ADK_LINUX_MIPS
  147. depends on !ADK_LINUX_MIPS64
  148. default n
  149. config ADK_TARGET_USE_GNU_HASHSTYLE
  150. prompt "Use GNU hashstyle for all packages"
  151. boolean
  152. depends on !ADK_LINUX_MIPS
  153. depends on !ADK_LINUX_MIPS64
  154. default n
  155. help
  156. Performance optimization for applications with lot of shared library
  157. dependencies. See http://www.akkadia.org/drepper/dsohowto.pdf
  158. config ADK_DEBUG
  159. bool "Compile applications with debug support and do not strip"
  160. default n
  161. help
  162. All software for the target will be compiled with:
  163. -fno-omit-frame-pointer
  164. -funwind-tables
  165. -fasynchronous-unwind-tables
  166. Software will not be stripped.
  167. Mostly useful for NFS root or big USB/CF or hard disk setups.
  168. config ADK_DEBUG_STRIP
  169. bool "strip target binaries/libraries for gdbserver usage"
  170. depends on ADK_DEBUG
  171. default n
  172. help
  173. All packages and C library will be compiled with debug information,
  174. but stripped for the target.
  175. config ADK_TARGET_USE_STATIC_LIBS
  176. bool "Link applications statically by default"
  177. default n
  178. default y if ADK_TARGET_UCLINUX
  179. select BUSYBOX_STATIC
  180. help
  181. Useful for debugging of dynamic linker problems. Be aware of the fact, that uClibc and glibc
  182. still requires libgcc_so.so.1 for pthread_cancel. Glibc also requires libnss_*.so libraries
  183. at runtime. Full static builds are only supported for musl libc.
  184. config ADK_STATIC_TOOLCHAIN
  185. boolean "Build the toolchain components statically"
  186. default n
  187. help
  188. If you want to create more portable toolchains, build them static.
  189. config ADK_UCLIBC_TEST
  190. prompt "Build testsuite for C library"
  191. boolean
  192. depends on ADK_TARGET_LIB_UCLIBC_NG || ADK_TARGET_LIB_UCLIBC
  193. default y
  194. endmenu