Config.in.toolchain 3.2 KB

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