Config.in.toolchain 4.6 KB

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