Config.in 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. source "toolchain/uClibc/Config.in"
  38. config GDB
  39. bool
  40. prompt "Build gdb" if TOOLCHAINOPTS
  41. default n
  42. help
  43. Enable if you want to build the gdb
  44. config LARGEFILE
  45. bool
  46. prompt "Enable large file (files > 2 GB) support?" if TOOLCHAINOPTS
  47. default y
  48. help
  49. Enable large file (files > 2 GB) support
  50. config SHADOW_PASSWORDS
  51. bool
  52. prompt "Enable shadow password support?" if TOOLCHAINOPTS
  53. default y
  54. help
  55. Enable shadow password support.
  56. config SOFT_FLOAT
  57. bool
  58. prompt "Use software floating point by default" if TOOLCHAINOPTS
  59. default y
  60. depends on (arm || armeb || powerpc) && !HAS_FPU
  61. help
  62. If your target CPU does not have a Floating Point Unit (FPU) or a
  63. kernel FPU emulator, but you still wish to support floating point
  64. functions, then everything will need to be compiled with soft floating
  65. point support (-msoft-float).
  66. Most people will answer N.
  67. config TARGET_OPTIMIZATION
  68. string
  69. prompt "Target Optimizations" if TOOLCHAINOPTS
  70. default "-O2 -pipe -march=i686 -funit-at-a-time" if TARGET_x86_mediacenter
  71. default "-O2 -pipe -march=i486 -funit-at-a-time" if TARGET_x86
  72. default "-Os -pipe -march=i486 -funit-at-a-time" if TARGET_rdc
  73. default "-Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time" if TARGET_ar71xx
  74. default "-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time" if mipsel || mips
  75. default "-Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time" if TARGET_ixp4xx || TARGET_iop32x || TARGET_pxa || TARGET_orion
  76. default "-Os -pipe -march=armv4 -mtune=arm9tdmi -funit-at-a-time" if TARGET_storm
  77. default "-Os -pipe -funit-at-a-time"
  78. help
  79. Optimizations to use when building for the target host.
  80. source "toolchain/gcc/Config.version"
  81. source "toolchain/uClibc/Config.version"