Config.in.toolchain 5.1 KB

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