Config.in 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. #
  2. config NATIVE_TOOLCHAIN
  3. bool
  4. prompt "Use host's toolchain" if DEVEL && BROKEN
  5. default n
  6. help
  7. If enabled, OpenWrt will compile using your existing toolchain instead of compiling one
  8. menuconfig TOOLCHAINOPTS
  9. bool "Toolchain Options" if DEVEL
  10. depends !NATIVE_TOOLCHAIN
  11. menuconfig EXTRA_TARGET_ARCH
  12. bool
  13. prompt "Enable an extra toolchain target architecture" if TOOLCHAINOPTS
  14. default y if TARGET_ps3
  15. default n
  16. help
  17. Some builds may require a 'biarch' toolchain. This option
  18. allows you to specify an additional target arch.
  19. Most people will answer N here.
  20. config EXTRA_TARGET_ARCH_NAME
  21. string
  22. default "powerpc64" if TARGET_ps3
  23. prompt "Extra architecture name" if EXTRA_TARGET_ARCH
  24. help
  25. Specify the cpu name (eg powerpc64 or x86_64) of the
  26. additional target architecture.
  27. config EXTRA_TARGET_ARCH_OPTS
  28. string
  29. default "-m64" if TARGET_ps3
  30. prompt "Extra architecture compiler options" if EXTRA_TARGET_ARCH
  31. help
  32. If you're specifying an addition target architecture,
  33. you'll probably need to also provide options to make
  34. the compiler use this alternate arch.
  35. For example, if you're building a compiler that can build
  36. both powerpc and powerpc64 binaries, you'll need to
  37. specify -m64 here.
  38. source "toolchain/binutils/Config.in"
  39. source "toolchain/gcc/Config.in"
  40. choice
  41. prompt "LIBC implementation" if TOOLCHAINOPTS
  42. default USE_UCLIBC
  43. help
  44. Select the LIBC implementation.
  45. config USE_EGLIBC
  46. bool "Use eglibc"
  47. depends !avr32
  48. select NO_STRIP
  49. config USE_GLIBC
  50. bool "Use glibc"
  51. depends !avr32
  52. select NO_STRIP
  53. config USE_UCLIBC
  54. bool "Use uClibc"
  55. endchoice
  56. source "toolchain/eglibc/Config.in"
  57. source "toolchain/glibc/Config.in"
  58. source "toolchain/uClibc/Config.in"
  59. config GDB
  60. bool
  61. prompt "Build gdb" if TOOLCHAINOPTS
  62. default n
  63. help
  64. Enable if you want to build the gdb
  65. config LARGEFILE
  66. bool
  67. prompt "Enable large file (files > 2 GB) support?" if TOOLCHAINOPTS
  68. default y
  69. help
  70. Enable large file (files > 2 GB) support
  71. config SHADOW_PASSWORDS
  72. bool
  73. prompt "Enable shadow password support?" if TOOLCHAINOPTS
  74. default y
  75. help
  76. Enable shadow password support.
  77. config SOFT_FLOAT
  78. bool
  79. prompt "Use software floating point by default" if TOOLCHAINOPTS
  80. default y
  81. depends on (arm || armeb || powerpc) && !HAS_FPU
  82. help
  83. If your target CPU does not have a Floating Point Unit (FPU) or a
  84. kernel FPU emulator, but you still wish to support floating point
  85. functions, then everything will need to be compiled with soft floating
  86. point support (-msoft-float).
  87. Most people will answer N.
  88. config TARGET_OPTIMIZATION
  89. string
  90. prompt "Target Optimizations" if TOOLCHAINOPTS
  91. default DEFAULT_TARGET_OPTIMIZATION
  92. help
  93. Optimizations to use when building for the target host.
  94. config USE_UCLIBC
  95. bool
  96. default y if !TOOLCHAINOPTS
  97. source "toolchain/gcc/Config.version"
  98. source "toolchain/eglibc/Config.version"
  99. source "toolchain/glibc/Config.version"
  100. source "toolchain/uClibc/Config.version"
  101. config LIBC
  102. string
  103. default "eglibc" if USE_EGLIBC
  104. default "glibc" if USE_GLIBC
  105. default "uClibc" if USE_UCLIBC
  106. config LIBC_VERSION
  107. string
  108. default EGLIBC_VERSION if USE_EGLIBC
  109. default GLIBC_VERSION if USE_GLIBC
  110. default UCLIBC_VERSION if USE_UCLIBC
  111. config TARGET_SUFFIX
  112. string
  113. default "gnueabi" if (USE_EGLIBC || USE_GLIBC) && EABI_SUPPORT
  114. default "gnu" if (USE_EGLIBC || USE_GLIBC) && !EABI_SUPPORT
  115. default "uclibcgnueabi" if USE_UCLIBC && EABI_SUPPORT
  116. default "uclibc" if USE_UCLIBC && !EABI_SUPPORT