Config.in.toolchain 4.5 KB

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