Config.in.toolchain 5.5 KB

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