Config.in.toolchain 3.5 KB

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