Config.in.toolchain 5.1 KB

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