Config.in.toolchain 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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_8_4
  25. bool "4.8.4"
  26. depends on !ADK_TARGET_ARCH_BFIN
  27. depends on !ADK_TARGET_ARCH_AARCH64
  28. depends on !ADK_TARGET_ARCH_ARC
  29. depends on !ADK_TARGET_ARCH_AVR32
  30. depends on !ADK_TARGET_ARCH_CRIS
  31. depends on !ADK_TARGET_ARCH_TILE
  32. depends on !ADK_TARGET_ARCH_C6X
  33. config ADK_TOOLCHAIN_GCC_4_9_2
  34. bool "4.9.2"
  35. depends on !ADK_TARGET_ARCH_BFIN
  36. depends on !ADK_TARGET_ARCH_ARC
  37. depends on !ADK_TARGET_ARCH_AVR32
  38. depends on !ADK_TARGET_ARCH_CRIS
  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. || ADK_TARGET_ARCH_M68K
  57. config ADK_TOOLCHAIN_BINUTILS_2_23_ARC
  58. bool "2.23-arc"
  59. depends on ADK_TARGET_ARCH_ARC
  60. config ADK_TOOLCHAIN_BINUTILS_2_24
  61. bool "2.24"
  62. depends on !ADK_TARGET_ARCH_BFIN
  63. depends on !ADK_TARGET_ARCH_ARC
  64. depends on !ADK_TARGET_ARCH_AVR32
  65. depends on !ADK_TARGET_ARCH_CRIS
  66. depends on !ADK_TARGET_ARCH_M68K
  67. config ADK_TOOLCHAIN_BINUTILS_GIT
  68. bool "git"
  69. depends on !ADK_TARGET_ARCH_BFIN
  70. depends on !ADK_TARGET_ARCH_ARC
  71. depends on !ADK_TARGET_ARCH_AVR32
  72. depends on !ADK_TARGET_ARCH_CRIS
  73. depends on !ADK_TARGET_ARCH_M68K
  74. endchoice
  75. config ADK_TARGET_CFLAGS_OPT
  76. string
  77. default "-Os -pipe" if ADK_TARGET_CFLAGS_OPT_OS
  78. default "-O2 -pipe" if ADK_TARGET_CFLAGS_OPT_O2
  79. default "-O3 -pipe" if ADK_TARGET_CFLAGS_OPT_O3
  80. default "-O0 -pipe" if ADK_TARGET_CFLAGS_OPT_O0
  81. choice
  82. prompt "Optimization level"
  83. bool
  84. config ADK_TARGET_CFLAGS_OPT_OS
  85. prompt "optimize for size (-Os)"
  86. config ADK_TARGET_CFLAGS_OPT_O2
  87. prompt "optimize for performance (-O2)"
  88. config ADK_TARGET_CFLAGS_OPT_O3
  89. prompt "optimize for performance (-O3)"
  90. config ADK_TARGET_CFLAGS_OPT_O0
  91. prompt "no optimization (-O0)"
  92. endchoice
  93. config ADK_TARGET_ARCH_ARM_WITH_THUMB
  94. bool "Use THUMB2 only mode"
  95. select ADK_KERNEL_THUMB2_KERNEL
  96. depends on ADK_TARGET_ARCH_ARM
  97. help
  98. Experimental option. Use with care.
  99. config ADK_TOOLCHAIN_WITH_SSP
  100. bool
  101. config ADK_TARGET_USE_SSP
  102. bool "Use Stack Smashing Protection for all packages"
  103. select ADK_TOOLCHAIN_WITH_SSP
  104. config ADK_TARGET_USE_PIE
  105. bool "Use Position Independent Executable for packages with have support for it"
  106. config ADK_TOOLCHAIN_WITH_LTO
  107. bool
  108. config ADK_TARGET_USE_LTO
  109. bool "Use Link Time Optimization for all packages"
  110. select ADK_TOOLCHAIN_WITH_LTO
  111. config ADK_TARGET_USE_LD_RELRO
  112. bool "Use LD read-only (-z relro) relocations for all packages"
  113. config ADK_TARGET_USE_LD_BIND_NOW
  114. bool "Use LD bind now (-z now) for all packages"
  115. config ADK_TARGET_USE_LD_GC
  116. bool "Use LD garbage collection for all packages"
  117. config ADK_TOOLCHAIN_WITH_GOLD
  118. bool
  119. config ADK_TARGET_USE_GOLD
  120. bool "Use GOLD as linker for all packages"
  121. select ADK_TOOLCHAIN_WITH_GOLD
  122. depends on !ADK_TARGET_ARCH_MIPS
  123. depends on !ADK_TARGET_ARCH_MIPS64
  124. config ADK_TARGET_USE_GNU_HASHSTYLE
  125. bool "Use GNU hashstyle for all packages"
  126. depends on !ADK_TARGET_ARCH_MIPS
  127. depends on !ADK_TARGET_ARCH_MIPS64
  128. help
  129. Performance optimization for applications with lot of shared library
  130. dependencies. See http://www.akkadia.org/drepper/dsohowto.pdf
  131. config ADK_DEBUG
  132. bool "Compile applications with debug support and do not strip"
  133. help
  134. All software for the target will be compiled with:
  135. -fno-omit-frame-pointer
  136. -funwind-tables
  137. -fasynchronous-unwind-tables
  138. Software will not be stripped.
  139. Mostly useful for NFS root or big USB/CF or hard disk setups.
  140. config ADK_DEBUG_STRIP
  141. bool "strip target binaries/libraries for gdbserver usage"
  142. depends on ADK_DEBUG
  143. help
  144. All packages and C library will be compiled with debug information,
  145. but stripped for the target.
  146. config ADK_TARGET_USE_STATIC_LIBS
  147. bool "Link applications statically by default"
  148. select BUSYBOX_STATIC
  149. help
  150. Useful for debugging of dynamic linker problems. Be aware of the fact, that uClibc and glibc
  151. still requires libgcc_so.so.1 for pthread_cancel. Glibc also requires libnss_*.so libraries
  152. at runtime. Full static builds are only supported for musl libc.
  153. config ADK_STATIC_TOOLCHAIN
  154. bool "Build the toolchain components statically"
  155. help
  156. If you want to create more portable toolchains, build them static.
  157. config ADK_UCLIBC_TEST
  158. bool "Build testsuite for C library"
  159. depends on ADK_TARGET_LIB_UCLIBC_NG || ADK_TARGET_LIB_UCLIBC
  160. default y
  161. endmenu