Config.in.toolchain 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. menu "Toolchain specific settings"
  4. depends on !ADK_CHOOSE_TARGET_ARCH && !ADK_CHOOSE_TARGET_SYSTEM
  5. config ADK_VENDOR
  6. string "Vendor name"
  7. default "openadk"
  8. help
  9. Vendor string is used for toolchain.
  10. config ADK_TARGET_CFLAGS_OPT
  11. string
  12. default "-Os -pipe" if ADK_TARGET_CFLAGS_OPT_OS
  13. default "-O2 -pipe" if ADK_TARGET_CFLAGS_OPT_O2
  14. default "-O3 -pipe" if ADK_TARGET_CFLAGS_OPT_O3
  15. default "-O0 -pipe" if ADK_TARGET_CFLAGS_OPT_O0
  16. choice
  17. prompt "Optimization level"
  18. boolean
  19. config ADK_TARGET_CFLAGS_OPT_OS
  20. prompt "optimize for size (-Os)"
  21. config ADK_TARGET_CFLAGS_OPT_O2
  22. prompt "optimize for performance (-O2)"
  23. config ADK_TARGET_CFLAGS_OPT_O3
  24. prompt "optimize for performance (-O3)"
  25. config ADK_TARGET_CFLAGS_OPT_O0
  26. prompt "no optimization (-O0)"
  27. endchoice
  28. config ADK_LINUX_ARM_WITH_THUMB
  29. prompt "Use THUMB2 ARM mode"
  30. boolean
  31. depends on ADK_CPU_CORTEX_A9 && ADK_TARGET_LIB_GLIBC
  32. select ADK_KERNEL_THUMB2_KERNEL
  33. default n
  34. config ADK_TOOLCHAIN_WITH_SSP
  35. boolean
  36. default n
  37. config ADK_TARGET_USE_SSP
  38. prompt "Use Stack Smashing Protection for all packages"
  39. boolean
  40. select ADK_TOOLCHAIN_WITH_SSP
  41. select ADK_PACKAGE_LIBSSP
  42. default n
  43. config ADK_TARGET_USE_PIE
  44. prompt "Use Position Independent Executable mode for all packages"
  45. boolean
  46. default n
  47. config ADK_TOOLCHAIN_WITH_LTO
  48. boolean
  49. default n
  50. config ADK_TARGET_USE_LTO
  51. prompt "Use Link Time Optimization for all packages"
  52. boolean
  53. select ADK_TOOLCHAIN_WITH_LTO
  54. default n
  55. config ADK_TARGET_USE_LD_RELRO
  56. prompt "Use LD read-only (-z relro) relocations for all packages"
  57. boolean
  58. default n
  59. config ADK_TARGET_USE_LD_BIND_NOW
  60. prompt "Use LD bind now (-z now) for all packages"
  61. boolean
  62. default n
  63. config ADK_TARGET_USE_LD_GC
  64. prompt "Use LD garbage collection for all packages"
  65. boolean
  66. default n
  67. config ADK_TOOLCHAIN_WITH_GOLD
  68. boolean
  69. default n
  70. config ADK_TARGET_USE_GOLD
  71. prompt "Use GOLD as linker for all packages"
  72. boolean
  73. select ADK_TOOLCHAIN_WITH_GOLD
  74. depends on !ADK_LINUX_MIPS
  75. depends on !ADK_LINUX_MIPS64
  76. default n
  77. config ADK_TARGET_USE_GNU_HASHSTYLE
  78. prompt "Use GNU hashstyle for all packages"
  79. boolean
  80. depends on !ADK_LINUX_MIPS
  81. depends on !ADK_LINUX_MIPS64
  82. default n
  83. help
  84. Performance optimization for applications with lot of shared library
  85. dependencies. See http://www.akkadia.org/drepper/dsohowto.pdf
  86. config ADK_DEBUG
  87. bool "Compile applications with debug support by default"
  88. default n
  89. help
  90. All packages and libc will be compiled and packaged with debug information.
  91. Mostly useful for NFS root or big USB/CF or hard disk setups.
  92. config ADK_DEBUG_OPTS
  93. bool "use optimization cflags"
  94. depends on ADK_DEBUG
  95. default n
  96. help
  97. All packages and C library will be compiled with debug information and optimization flags on.
  98. config ADK_DEBUG_STRIP
  99. bool "strip target binaries/libraries for gdbserver usage"
  100. depends on ADK_DEBUG
  101. default n
  102. help
  103. All packages and C library will be compiled with debug information, but stripped for the target.
  104. config ADK_TARGET_USE_STATIC_LIBS
  105. bool "Link applications statically by default"
  106. default n
  107. select BUSYBOX_STATIC
  108. help
  109. Useful for debugging of dynamic linker problems.
  110. endmenu