Config.in.toolchain 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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. visible if !ADK_CHOOSE_APPLIANCE
  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. bool "4.4.7"
  14. depends on ADK_TARGET_ARCH_AVR32
  15. config ADK_TOOLCHAIN_GCC_4_5_4
  16. bool "4.5.4"
  17. depends on ADK_TARGET_ARCH_BFIN
  18. config ADK_TOOLCHAIN_GCC_4_7_4
  19. bool "4.7.4"
  20. depends on ADK_TARGET_ARCH_CRIS || ADK_TARGET_ARCH_C6X
  21. config ADK_TOOLCHAIN_GCC_4_8_0_ARC
  22. bool "4.8.0-arc"
  23. depends on ADK_TARGET_ARCH_ARC
  24. config ADK_TOOLCHAIN_GCC_4_9_2
  25. bool "4.9.2"
  26. depends on !ADK_TARGET_ARCH_BFIN
  27. depends on !ADK_TARGET_ARCH_ARC
  28. depends on !ADK_TARGET_ARCH_AVR32
  29. depends on !ADK_TARGET_ARCH_CRIS
  30. depends on !ADK_TARGET_ARCH_C6X
  31. config ADK_TOOLCHAIN_GCC_4_8_4
  32. bool "4.8.4"
  33. depends on !ADK_TARGET_ARCH_BFIN
  34. depends on !ADK_TARGET_ARCH_AARCH64
  35. depends on !ADK_TARGET_ARCH_ARC
  36. depends on !ADK_TARGET_ARCH_AVR32
  37. depends on !ADK_TARGET_ARCH_CRIS
  38. depends on !ADK_TARGET_ARCH_TILE
  39. depends on !ADK_TARGET_ARCH_C6X
  40. config ADK_TOOLCHAIN_GCC_GIT
  41. bool "git"
  42. depends on !ADK_TARGET_ARCH_BFIN
  43. depends on !ADK_TARGET_ARCH_ARC
  44. depends on !ADK_TARGET_ARCH_AVR32
  45. depends on !ADK_TARGET_ARCH_CRIS
  46. endchoice
  47. choice
  48. prompt "Binutils version"
  49. config ADK_TOOLCHAIN_BINUTILS_2_20_1
  50. bool "2.20.1"
  51. depends on ADK_TARGET_ARCH_AVR32
  52. config ADK_TOOLCHAIN_BINUTILS_2_22
  53. bool "2.22"
  54. depends on ADK_TARGET_ARCH_BFIN \
  55. || ADK_TARGET_ARCH_CRIS
  56. config ADK_TOOLCHAIN_BINUTILS_2_23_ARC
  57. bool "2.23-arc"
  58. depends on ADK_TARGET_ARCH_ARC
  59. config ADK_TOOLCHAIN_BINUTILS_2_25
  60. bool "2.25"
  61. depends on !ADK_TARGET_ARCH_BFIN
  62. depends on !ADK_TARGET_ARCH_ARC
  63. depends on !ADK_TARGET_ARCH_AVR32
  64. depends on !ADK_TARGET_ARCH_CRIS
  65. config ADK_TOOLCHAIN_BINUTILS_2_24
  66. bool "2.24"
  67. depends on !ADK_TARGET_ARCH_BFIN
  68. depends on !ADK_TARGET_ARCH_ARC
  69. depends on !ADK_TARGET_ARCH_AVR32
  70. depends on !ADK_TARGET_ARCH_CRIS
  71. config ADK_TOOLCHAIN_BINUTILS_GIT
  72. bool "git"
  73. depends on !ADK_TARGET_ARCH_BFIN
  74. depends on !ADK_TARGET_ARCH_ARC
  75. depends on !ADK_TARGET_ARCH_AVR32
  76. depends on !ADK_TARGET_ARCH_CRIS
  77. endchoice
  78. choice
  79. prompt "GNU debugger version"
  80. config ADK_TOOLCHAIN_GDB_7_8_2
  81. bool "7.8.2"
  82. depends on !ADK_TARGET_ARCH_AVR32
  83. config ADK_TOOLCHAIN_GDB_6_7_1
  84. bool "6.7.1"
  85. depends on ADK_TARGET_ARCH_AVR32
  86. config ADK_TOOLCHAIN_GDB_GIT
  87. bool "git"
  88. depends on !ADK_TARGET_ARCH_AVR32
  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. bool
  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_TARGET_ARCH_ARM_WITH_THUMB
  109. bool "Use THUMB2 only mode"
  110. select ADK_KERNEL_THUMB2_KERNEL
  111. depends on ADK_TARGET_ARCH_ARM
  112. help
  113. Experimental option. Use with care.
  114. config ADK_TOOLCHAIN_WITH_SSP
  115. bool
  116. config ADK_TARGET_USE_SSP
  117. bool "Use Stack Smashing Protection for all packages"
  118. select ADK_TOOLCHAIN_WITH_SSP
  119. config ADK_TARGET_USE_PIE
  120. bool "Use Position Independent Executable for packages with have support for it"
  121. config ADK_TOOLCHAIN_WITH_LTO
  122. bool
  123. config ADK_TARGET_USE_LTO
  124. bool "Use Link Time Optimization for all packages"
  125. select ADK_TOOLCHAIN_WITH_LTO
  126. config ADK_TARGET_USE_LD_RELRO
  127. bool "Use LD read-only (-z relro) relocations for all packages"
  128. config ADK_TARGET_USE_LD_BIND_NOW
  129. bool "Use LD bind now (-z now) for all packages"
  130. config ADK_TARGET_USE_LD_GC
  131. bool "Use LD garbage collection for all packages"
  132. config ADK_TOOLCHAIN_WITH_GOLD
  133. bool
  134. config ADK_TARGET_USE_GOLD
  135. bool "Use GOLD as linker for all packages"
  136. select ADK_TOOLCHAIN_WITH_GOLD
  137. depends on !ADK_TARGET_ARCH_MIPS
  138. depends on !ADK_TARGET_ARCH_MIPS64
  139. config ADK_TARGET_USE_GNU_HASHSTYLE
  140. bool "Use GNU hashstyle for all packages"
  141. depends on !ADK_TARGET_ARCH_MIPS
  142. depends on !ADK_TARGET_ARCH_MIPS64
  143. help
  144. Performance optimization for applications with lot of shared library
  145. dependencies. See http://www.akkadia.org/drepper/dsohowto.pdf
  146. config ADK_DEBUG
  147. bool "Compile applications with debug support and do not strip"
  148. help
  149. All software for the target will be compiled with:
  150. -fno-omit-frame-pointer
  151. -funwind-tables
  152. -fasynchronous-unwind-tables
  153. Software will not be stripped.
  154. Mostly useful for NFS root or big USB/CF or hard disk setups.
  155. config ADK_DEBUG_STRIP
  156. bool "strip target binaries/libraries for gdbserver usage"
  157. depends on ADK_DEBUG
  158. help
  159. All packages and C library will be compiled with debug information,
  160. but stripped for the target.
  161. config ADK_TARGET_USE_STATIC_LIBS
  162. bool "Link applications statically by default"
  163. select BUSYBOX_STATIC
  164. help
  165. Useful for debugging of dynamic linker problems. Be aware of the fact, that uClibc and glibc
  166. still requires libgcc_so.so.1 for pthread_cancel. Glibc also requires libnss_*.so libraries
  167. at runtime. Full static builds are only supported for musl libc.
  168. config ADK_STATIC_TOOLCHAIN
  169. bool "Build the toolchain components statically"
  170. help
  171. If you want to create more portable toolchains, build them static.
  172. config ADK_UCLIBC_TEST
  173. bool "Build testsuite for C library"
  174. depends on ADK_TARGET_LIB_UCLIBC_NG || ADK_TARGET_LIB_UCLIBC
  175. default y
  176. endmenu