1
0

Config.in.toolchain 4.4 KB

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