Config.in.toolchain 5.4 KB

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