Config.in.toolchain 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. bool "Optimization level"
  12. config ADK_TARGET_CFLAGS_OPT_OS
  13. bool "optimize for size (-Os)"
  14. config ADK_TARGET_CFLAGS_OPT_OG
  15. bool "optimize, but allow debugging (-Og)"
  16. config ADK_TARGET_CFLAGS_OPT_O1
  17. bool "optimize for minor performance (-O1)"
  18. config ADK_TARGET_CFLAGS_OPT_O2
  19. bool "optimize for performance (-O2)"
  20. config ADK_TARGET_CFLAGS_OPT_O3
  21. bool "optimize for extra performance (-O3)"
  22. config ADK_TARGET_CFLAGS_OPT_O0
  23. bool "no optimization (-O0)"
  24. endchoice
  25. menu "Compiler language support"
  26. config ADK_TOOLCHAIN_WITH_CXX
  27. bool "enable C++"
  28. config ADK_TOOLCHAIN_WITH_OBJC
  29. bool "enable Objective-C"
  30. config ADK_TOOLCHAIN_WITH_FORTRAN
  31. bool "enable Fortran"
  32. select ADK_PACKAGE_LIBGFORTRAN
  33. config ADK_TOOLCHAIN_WITH_GO
  34. bool "enable Go"
  35. select ADK_PACKAGE_LIBGO
  36. endmenu
  37. menu "Advanced Toolchain options"
  38. config ADK_TOOLCHAIN_WITH_SSP
  39. bool
  40. config ADK_TARGET_USE_SSP
  41. bool "Use Stack Smashing Protection for all packages"
  42. select ADK_TOOLCHAIN_WITH_SSP
  43. config ADK_TARGET_USE_PIE
  44. bool "Use Position Independent Executable for packages with have support for it"
  45. config ADK_TOOLCHAIN_WITH_LTO
  46. bool
  47. config ADK_TARGET_USE_LTO
  48. bool "Use Link Time Optimization for all packages"
  49. select ADK_TOOLCHAIN_WITH_LTO
  50. config ADK_TARGET_USE_LD_RELRO
  51. bool "Use LD read-only (-z relro) relocations for all packages"
  52. config ADK_TARGET_USE_LD_BIND_NOW
  53. bool "Use LD bind now (-z now) for all packages"
  54. config ADK_TARGET_USE_LD_GC
  55. bool "Use LD garbage collection for all packages"
  56. config ADK_TOOLCHAIN_WITH_GOLD
  57. bool "Enable building of GOLD linker"
  58. config ADK_TARGET_USE_GOLD
  59. bool "Use GOLD as default linker"
  60. depends on ADK_TOOLCHAIN_WITH_GOLD
  61. depends on ADK_TARGET_LIB_GLIBC # can not be build with GOLD (glibc 2.24 checked)
  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_STATIC_TOOLCHAIN
  85. bool "Build the toolchain components statically (portable host binaries)"
  86. help
  87. If you want to create more portable toolchains, build them static.
  88. config ADK_PRELINK
  89. bool "Prelink binaries and libraries in Image"
  90. depends on ADK_TARGET_OS_LINUX || ADK_TARGET_OS_WALDUX
  91. help
  92. Do prelinking for faster loading of binaries.
  93. config ADK_PRELINK_OPTS
  94. string "additional options to pass to prelink"
  95. default "-mR"
  96. depends on ADK_PRELINK
  97. endmenu