Config.in 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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 || TARGET_pxcab
  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 || TARGET_pxcab
  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 || TARGET_pxcab
  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. config USE_GLIBC
  49. bool "Use glibc"
  50. depends !avr32
  51. config USE_UCLIBC
  52. bool "Use uClibc"
  53. endchoice
  54. source "toolchain/eglibc/Config.in"
  55. source "toolchain/glibc/Config.in"
  56. source "toolchain/uClibc/Config.in"
  57. config GDB
  58. bool
  59. prompt "Build gdb" if TOOLCHAINOPTS
  60. default n
  61. help
  62. Enable if you want to build the gdb
  63. config INSIGHT
  64. bool
  65. prompt "Build insight-gdb" if TOOLCHAINOPTS
  66. select GDB
  67. default n
  68. help
  69. Enable if you want to build insight-gdb
  70. config LARGEFILE
  71. bool
  72. prompt "Enable large file (files > 2 GB) support?" if TOOLCHAINOPTS
  73. default y
  74. help
  75. Enable large file (files > 2 GB) support
  76. config SHADOW_PASSWORDS
  77. bool
  78. prompt "Enable shadow password support?" if TOOLCHAINOPTS
  79. default y
  80. help
  81. Enable shadow password support.
  82. config SOFT_FLOAT
  83. bool
  84. prompt "Use software floating point by default" if TOOLCHAINOPTS
  85. default y
  86. depends on (arm || armeb || powerpc || mipsel || mips) && !HAS_FPU
  87. help
  88. If your target CPU does not have a Floating Point Unit (FPU) or a
  89. kernel FPU emulator, but you still wish to support floating point
  90. functions, then everything will need to be compiled with soft floating
  91. point support (-msoft-float).
  92. Most people will answer N.
  93. config TARGET_OPTIMIZATION
  94. string
  95. prompt "Target Optimizations" if TOOLCHAINOPTS
  96. default DEFAULT_TARGET_OPTIMIZATION
  97. help
  98. Optimizations to use when building for the target host.
  99. config USE_UCLIBC
  100. bool
  101. default y if !TOOLCHAINOPTS
  102. source "toolchain/gcc/Config.version"
  103. source "toolchain/eglibc/Config.version"
  104. source "toolchain/glibc/Config.version"
  105. source "toolchain/uClibc/Config.version"
  106. config LIBC
  107. string
  108. default "eglibc" if USE_EGLIBC
  109. default "glibc" if USE_GLIBC
  110. default "uClibc" if USE_UCLIBC
  111. config LIBC_VERSION
  112. string
  113. default EGLIBC_VERSION if USE_EGLIBC
  114. default GLIBC_VERSION if USE_GLIBC
  115. default UCLIBC_VERSION if USE_UCLIBC
  116. config TARGET_SUFFIX
  117. string
  118. default "gnueabi" if (USE_EGLIBC || USE_GLIBC) && EABI_SUPPORT
  119. default "gnu" if (USE_EGLIBC || USE_GLIBC) && !EABI_SUPPORT
  120. default "uclibcgnueabi" if USE_UCLIBC && EABI_SUPPORT
  121. default "uclibc" if USE_UCLIBC && !EABI_SUPPORT