Config.in.host 3.0 KB

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