Config.in 4.1 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 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 "-O2 -pipe -march=i686 -funit-at-a-time" if TARGET_x86_mediacenter
  89. default "-O2 -pipe -march=i486 -funit-at-a-time" if TARGET_x86
  90. default "-Os -pipe -march=i486 -funit-at-a-time" if TARGET_rdc
  91. default "-Os -pipe -march=i486 -funit-at-a-time" if TARGET_uml && i386
  92. default "-Os -pipe -march=athlon64 -funit-at-a-time" if TARGET_uml && x86_64
  93. default "-Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time" if TARGET_ar71xx
  94. default "-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time" if mipsel || mips
  95. default "-Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time" if TARGET_ixp4xx || TARGET_iop32x || TARGET_pxa || TARGET_orion
  96. default "-Os -pipe -march=armv4 -mtune=arm9tdmi -funit-at-a-time" if TARGET_storm
  97. default "-Os -pipe -funit-at-a-time"
  98. help
  99. Optimizations to use when building for the target host.
  100. config USE_UCLIBC
  101. bool
  102. default y if !TOOLCHAINOPTS
  103. source "toolchain/gcc/Config.version"
  104. source "toolchain/eglibc/Config.version"
  105. source "toolchain/glibc/Config.version"
  106. source "toolchain/uClibc/Config.version"
  107. config LIBC
  108. string
  109. default "eglibc" if USE_EGLIBC
  110. default "glibc" if USE_GLIBC
  111. default "uClibc" if USE_UCLIBC
  112. config LIBC_VERSION
  113. string
  114. default EGLIBC_VERSION if USE_EGLIBC
  115. default GLIBC_VERSION if USE_GLIBC
  116. default UCLIBC_VERSION if USE_UCLIBC
  117. config TARGET_SUFFIX
  118. string
  119. default "gnueabi" if (USE_EGLIBC || USE_GLIBC) && EABI_SUPPORT
  120. default "gnu" if (USE_EGLIBC || USE_GLIBC) && !EABI_SUPPORT
  121. default "uclibcgnueabi" if USE_UCLIBC && EABI_SUPPORT
  122. default "uclibc" if USE_UCLIBC && !EABI_SUPPORT