Config.in 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. # Choose gcc version.
  2. comment "GCC Options"
  3. choice
  4. prompt "GCC compiler Version"
  5. default BR2_GCC_VERSION_4_2_1 if !BR2_avr32
  6. default BR2_GCC_VERSION_4_1_2 if BR2_avr32
  7. help
  8. Select the version of gcc you wish to use.
  9. config BR2_GCC_VERSION_3_4_6
  10. depends on !BR2_avr32
  11. bool "gcc 3.4.6"
  12. config BR2_GCC_VERSION_4_0_4
  13. depends !BR2_avr32 && !BR2_nios2
  14. depends BR2_DEPRECATED
  15. bool "gcc 4.0.4"
  16. config BR2_GCC_VERSION_4_1_2
  17. depends !BR2_nios2
  18. depends BR2_EXT_GCC_VERSION_4_1_2
  19. bool "gcc 4.1.2"
  20. config BR2_GCC_VERSION_4_2_0
  21. depends !BR2_avr32 && !BR2_nios2
  22. depends BR2_DEPRECATED || BR2_RECENT
  23. bool "gcc 4.2.0"
  24. config BR2_GCC_VERSION_4_2_1
  25. depends !BR2_nios2
  26. depends BR2_EXT_GCC_VERSION_4_2_1
  27. bool "gcc 4.2.1"
  28. # config BR2_GCC_VERSION_4_3
  29. # depends !BR2_avr32 && !BR2_nios2
  30. # select BR2_GCC_IS_SNAP
  31. # bool "gcc 4.3"
  32. endchoice
  33. config BR2_GCC_IS_SNAP
  34. depends !BR2_avr32
  35. bool
  36. default n
  37. config BR2_GCC_SUPPORTS_SYSROOT
  38. bool
  39. default n if BR2_GCC_VERSION_3_4_6 || BR2_GCC_VERSION_4_0_4 || BR2_GCC_VERSION_4_1_2
  40. default y if !BR2_GCC_VERSION_3_4_6 && !BR2_GCC_VERSION_4_0_4 && !BR2_GCC_VERSION_4_1_2
  41. config BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE
  42. bool
  43. default n if BR2_GCC_VERSION_3_4_6 || BR2_GCC_VERSION_4_0_4 || BR2_GCC_VERSION_4_1_2 || BR2_GCC_VERSION_4_2_0 || BR2_GCC_VERSION_4_2_1
  44. default y if !BR2_GCC_VERSION_3_4_6 && !BR2_GCC_VERSION_4_0_4 && !BR2_GCC_VERSION_4_1_2 && !BR2_GCC_VERSION_4_2_0 && !BR2_GCC_VERSION_4_2_1
  45. config BR2_GCC_SNAP_DATE
  46. string "GCC snapshot date"
  47. default "20070921"
  48. depends BR2_GCC_IS_SNAP
  49. help
  50. Enter snapshot date to use for gcc. Format is:
  51. YYYYMMDD
  52. config BR2_GCC_VERSION
  53. string
  54. default "3.4.6" if BR2_GCC_VERSION_3_4_6
  55. default "4.0.4" if BR2_GCC_VERSION_4_0_4
  56. default "4.1.2" if BR2_GCC_VERSION_4_1_2
  57. default "4.2.0" if BR2_GCC_VERSION_4_2_0
  58. default "4.2.1" if BR2_GCC_VERSION_4_2_1
  59. default "4.3" if BR2_GCC_VERSION_4_3
  60. config BR2_TOOLCHAIN_SYSROOT
  61. bool "Enable toolchain with --sysroot support"
  62. depends on BR2_GCC_SUPPORTS_SYSROOT
  63. default y
  64. help
  65. Enables --sysroot=dir for binutils and gcc.
  66. Use dir as the logical root directory for headers and libraries.
  67. For example, if the compiler would normally search for headers in
  68. /usr/include and libraries in /usr/lib, it will instead search
  69. dir/usr/include and dir/usr/lib.
  70. This does not work with gcc < 4.2.0 (4.1.2 gets
  71. ORIGINAL_AS_FOR_TARGET wrong)
  72. config BR2_GCC_USE_SJLJ_EXCEPTIONS
  73. bool "Enable setjmp/longjmp exceptions?"
  74. default n
  75. help
  76. For some platforms, proper stack unwinding works perfectly,
  77. while other platforms must use setjmp/longjmp exceptions for
  78. proper stack unwinding during exception handling. Most people
  79. can leave this set to n.
  80. config BR2_EXTRA_GCC_CONFIG_OPTIONS
  81. string "Additional gcc options"
  82. default ""
  83. help
  84. Any additional gcc configure options you may want to include....
  85. config BR2_GCC_CROSS_CXX
  86. bool "C++ cross-compiler support"
  87. default n
  88. help
  89. Build a C++ cross-compiler
  90. config BR2_GCC_CROSS_FORTRAN
  91. bool "Fortran cross-compiler support"
  92. default n
  93. depends on !BR2_avr32
  94. help
  95. Build a Fortran cross-compiler
  96. config BR2_INSTALL_LIBSTDCPP
  97. bool "Build/install c++ compiler and libstdc++?"
  98. default n
  99. # >= 4.2.0 work fine without LARGEFILE
  100. select BR2_LARGEFILE if !BR2_GCC_SUPPORTS_SYSROOT
  101. select BR2_GCC_CROSS_CXX
  102. help
  103. Build/install c++ compiler and libstdc++?
  104. config BR2_INSTALL_LIBGCJ
  105. bool "Build/install java compiler and libgcj?"
  106. default n
  107. depends on !BR2_avr32 && BR2_INSTALL_LIBSTDCPP
  108. help
  109. Build/install java compiler and libgcj?
  110. config BR2_INSTALL_OBJC
  111. bool "Build/install Objective-C compiler and runtime?"
  112. default n
  113. depends on !BR2_avr32
  114. help
  115. Build/install Objective-C compiler and runtime?
  116. config BR2_INSTALL_FORTRAN
  117. bool "Build/install Fortran compiler and runtime?"
  118. default n
  119. depends on !BR2_avr32
  120. select BR2_PACKAGE_LIBMPFR
  121. help
  122. Build/install Fortran compiler and runtime?
  123. Note that it is highly recommended NOT to use gfortran
  124. from gcc older than 4.2.0
  125. config BR2_GCC_SHARED_LIBGCC
  126. bool "Build/install a shared libgcc?"
  127. default y
  128. help
  129. Build/install a shared libgcc library