Config.in 3.4 KB

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