1
0

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