Config.in.toolchain 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. choice
  4. depends on ADK_TARGET_OS_LINUX
  5. prompt "Iconv implementation"
  6. bool
  7. default ADK_TARGET_WITHOUT_ICONV if ADK_TARGET_WITHOUT_MMU
  8. config ADK_TARGET_LIBICONV_TINY
  9. prompt "Use tiny libiconv package"
  10. select ADK_PACKAGE_LIBICONV_TINY
  11. config ADK_TARGET_LIBC_ICONV
  12. prompt "Use iconv from C library"
  13. config ADK_TARGET_LIBICONV
  14. prompt "Use libiconv package"
  15. select ADK_PACKAGE_LIBICONV
  16. config ADK_TARGET_WITHOUT_ICONV
  17. prompt "Do not build any iconv code"
  18. endchoice
  19. config ADK_TARGET_CFLAGS_OPT
  20. string
  21. default "-Os -pipe" if ADK_TARGET_CFLAGS_OPT_OS
  22. default "-Og -pipe" if ADK_TARGET_CFLAGS_OPT_OG
  23. default "-O2 -pipe" if ADK_TARGET_CFLAGS_OPT_O2
  24. default "-O3 -pipe" if ADK_TARGET_CFLAGS_OPT_O3
  25. default "-O0 -pipe" if ADK_TARGET_CFLAGS_OPT_O0
  26. choice
  27. prompt "Optimization level"
  28. bool
  29. config ADK_TARGET_CFLAGS_OPT_OS
  30. prompt "optimize for size (-Os)"
  31. config ADK_TARGET_CFLAGS_OPT_OG
  32. prompt "optimize, but allow debugging (-Og)"
  33. config ADK_TARGET_CFLAGS_OPT_O2
  34. prompt "optimize for performance (-O2)"
  35. config ADK_TARGET_CFLAGS_OPT_O3
  36. prompt "optimize for extra performance (-O3)"
  37. config ADK_TARGET_CFLAGS_OPT_O0
  38. prompt "no optimization (-O0)"
  39. endchoice
  40. menu "Compiler language support"
  41. config ADK_TOOLCHAIN_WITH_CXX
  42. bool "enable C++"
  43. default y if ADK_TARGET_OS_LINUX \
  44. && !ADK_TARGET_ARCH_H8300
  45. default n
  46. config ADK_TOOLCHAIN_WITH_OBJC
  47. bool "enable Objective-C"
  48. default n
  49. config ADK_TOOLCHAIN_WITH_FORTRAN
  50. bool "enable Fortran"
  51. default n
  52. config ADK_TOOLCHAIN_WITH_GO
  53. bool "enable Go"
  54. default n
  55. endmenu
  56. menu "Advanced Toolchain options"
  57. config ADK_TOOLCHAIN_WITH_SSP
  58. bool
  59. config ADK_TARGET_USE_SSP
  60. bool "Use Stack Smashing Protection for all packages"
  61. select ADK_TOOLCHAIN_WITH_SSP
  62. config ADK_TARGET_USE_PIE
  63. bool "Use Position Independent Executable for packages with have support for it"
  64. config ADK_TOOLCHAIN_WITH_LTO
  65. bool
  66. config ADK_TARGET_USE_LTO
  67. bool "Use Link Time Optimization for all packages"
  68. select ADK_TOOLCHAIN_WITH_LTO
  69. config ADK_TARGET_USE_LD_RELRO
  70. bool "Use LD read-only (-z relro) relocations for all packages"
  71. config ADK_TARGET_USE_LD_BIND_NOW
  72. bool "Use LD bind now (-z now) for all packages"
  73. config ADK_TARGET_USE_LD_GC
  74. bool "Use LD garbage collection for all packages"
  75. config ADK_TOOLCHAIN_WITH_GOLD
  76. bool
  77. config ADK_TARGET_USE_GOLD
  78. bool "Use GOLD as linker for all packages"
  79. select ADK_TOOLCHAIN_WITH_GOLD
  80. depends on !ADK_TARGET_ARCH_MIPS
  81. depends on !ADK_TARGET_ARCH_MIPS64
  82. config ADK_TARGET_USE_GNU_HASHSTYLE
  83. bool "Use GNU hashstyle for all packages"
  84. depends on !ADK_TARGET_ARCH_MIPS
  85. depends on !ADK_TARGET_ARCH_MIPS64
  86. help
  87. Performance optimization for applications with lot of shared library
  88. dependencies. See http://www.akkadia.org/drepper/dsohowto.pdf
  89. config ADK_DEBUG
  90. bool "Compile applications with debug support and do not strip"
  91. help
  92. All software for the target will be compiled with:
  93. -fno-omit-frame-pointer
  94. -funwind-tables
  95. -fasynchronous-unwind-tables
  96. Software will not be stripped.
  97. Mostly useful for NFS root or big USB/CF or hard disk setups.
  98. config ADK_DEBUG_STRIP
  99. bool "strip target binaries/libraries for gdbserver usage"
  100. depends on ADK_DEBUG
  101. help
  102. All packages and C library will be compiled with debug information,
  103. but stripped for the target.
  104. config ADK_TARGET_USE_STATIC_LIBS
  105. bool "Link applications statically by default"
  106. select BUSYBOX_STATIC
  107. depends on !ADK_TARGET_BINFMT_FLAT && !ADK_TARGET_BINFMT_DSBT
  108. help
  109. Useful for debugging of dynamic linker problems. Be aware of the fact, that uClibc and glibc
  110. still requires libgcc_so.so.1 for pthread_cancel. Glibc also requires libnss_*.so libraries
  111. at runtime. Full static builds are only supported for musl libc.
  112. config ADK_STATIC_TOOLCHAIN
  113. bool "Build the toolchain components statically"
  114. help
  115. If you want to create more portable toolchains, build them static.
  116. config ADK_PRELINK
  117. bool "Prelink binaries and libraries in Image"
  118. depends on ADK_TARGET_OS_LINUX
  119. help
  120. Do prelinking for faster loading of binaries.
  121. config ADK_PRELINK_OPTS
  122. string "additional options to pass to prelink"
  123. default "-mR"
  124. depends on ADK_PRELINK
  125. endmenu