Config.in.toolchain 5.1 KB

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