Config.in.host 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. config BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS
  2. bool
  3. default y
  4. # The ARC version needs C++11, thus gcc >= 4.8, like gdb-8.0.x
  5. depends on BR2_HOST_GCC_AT_LEAST_4_8 || !BR2_arc
  6. depends on !((BR2_arm || BR2_armeb) && BR2_BINFMT_FLAT)
  7. depends on !BR2_microblaze
  8. depends on !BR2_nios2
  9. depends on !BR2_or1k
  10. comment "Host GDB Options"
  11. depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
  12. depends on BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS
  13. config BR2_PACKAGE_HOST_GDB
  14. bool "Build cross gdb for the host"
  15. # When the external toolchain gdbserver is used, we shouldn't
  16. # allow to build a cross-gdb, as the one of the external
  17. # toolchain should be used.
  18. depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
  19. depends on BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS
  20. help
  21. Build a cross gdb that runs on the host machine and debugs
  22. programs running on the target. It requires 'gdbserver'
  23. installed on the target, see BR2_PACKAGE_GDB_SERVER to
  24. enable it.
  25. if BR2_PACKAGE_HOST_GDB
  26. config BR2_PACKAGE_HOST_GDB_TUI
  27. bool "TUI support"
  28. help
  29. This option enables terminal user interface (TUI) for gdb
  30. config BR2_PACKAGE_HOST_GDB_PYTHON
  31. bool "Python support"
  32. help
  33. This option enables the Python support in the cross gdb.
  34. config BR2_PACKAGE_HOST_GDB_SIM
  35. bool "Simulator support"
  36. depends on !BR2_arc
  37. help
  38. This option enables the simulator support in the cross gdb.
  39. choice
  40. prompt "GDB debugger Version"
  41. default BR2_GDB_VERSION_8_1
  42. depends on !BR2_arc
  43. help
  44. Select the version of gdb you wish to use.
  45. config BR2_GDB_VERSION_7_12
  46. bool "gdb 7.12.x"
  47. config BR2_GDB_VERSION_8_0
  48. bool "gdb 8.0.x"
  49. # Needs a C++11 compiler
  50. depends on BR2_HOST_GCC_AT_LEAST_4_8
  51. config BR2_GDB_VERSION_8_1
  52. bool "gdb 8.1.x"
  53. # Needs a C++11 compiler
  54. depends on BR2_HOST_GCC_AT_LEAST_4_8
  55. config BR2_GDB_VERSION_8_2
  56. bool "gdb 8.2.x"
  57. # Needs a C++11 compiler
  58. depends on BR2_HOST_GCC_AT_LEAST_4_8
  59. endchoice
  60. endif
  61. # Tells whether the currently selected gdb version requires C++11
  62. # support in the toolchain. When host-gdb is not enabled, the target
  63. # gdb built is 8.0, which requires C++11 support, which is why
  64. # BR2_PACKAGE_GDB_NEEDS_CXX11 is 'y' when BR2_PACKAGE_HOST_GDB is not
  65. # enabled. When host-gdb is built, with the version set to 8.0 or 8.1
  66. # then C++11 support is needed in the toolchain to build gdb for the
  67. # target.
  68. #
  69. # Even though this option is related to target gdb dependencies, we
  70. # keep it next to the BR2_GDB_VERSION so that they are kept in sync.
  71. config BR2_PACKAGE_GDB_NEEDS_CXX11
  72. bool
  73. default y if !BR2_PACKAGE_HOST_GDB
  74. default y if BR2_GDB_VERSION_8_0
  75. default y if BR2_GDB_VERSION_8_1
  76. default y if BR2_GDB_VERSION_8_2
  77. default y if BR2_arc
  78. # If cross-gdb is not enabled, the latest working version is chosen.
  79. config BR2_GDB_VERSION
  80. string
  81. default "arc-2018.09-rc2-gdb" if BR2_arc
  82. default "7.12.1" if BR2_GDB_VERSION_7_12
  83. default "8.0.1" if BR2_GDB_VERSION_8_0
  84. default "8.1.1" if BR2_GDB_VERSION_8_1 || !BR2_PACKAGE_HOST_GDB
  85. default "8.2" if BR2_GDB_VERSION_8_2
  86. depends on BR2_PACKAGE_GDB || BR2_PACKAGE_HOST_GDB