Config.in.host 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. config BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS
  2. bool
  3. default y
  4. depends on !((BR2_arm || BR2_armeb) && BR2_BINFMT_FLAT)
  5. depends on !BR2_microblaze
  6. comment "Host GDB Options"
  7. depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
  8. depends on BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS
  9. config BR2_PACKAGE_HOST_GDB
  10. bool "Build cross gdb for the host"
  11. # When the external toolchain gdbserver is used, we shouldn't
  12. # allow to build a cross-gdb, as the one of the external
  13. # toolchain should be used.
  14. depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
  15. depends on BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS
  16. help
  17. Build a cross gdb that runs on the host machine and debugs
  18. programs running on the target. It requires 'gdbserver'
  19. installed on the target, see BR2_PACKAGE_GDB_SERVER to
  20. enable it.
  21. if BR2_PACKAGE_HOST_GDB
  22. config BR2_PACKAGE_HOST_GDB_TUI
  23. bool "TUI support"
  24. help
  25. This option enables terminal user interface (TUI) for gdb
  26. config BR2_PACKAGE_HOST_GDB_PYTHON3
  27. bool "Python support"
  28. help
  29. This option enables the Python 3 support in the cross gdb.
  30. config BR2_PACKAGE_HOST_GDB_SIM
  31. bool "Simulator support"
  32. depends on !BR2_arc
  33. help
  34. This option enables the simulator support in the cross gdb.
  35. choice
  36. prompt "GDB debugger Version"
  37. default BR2_GDB_VERSION_10
  38. depends on !BR2_arc
  39. help
  40. Select the version of gdb you wish to use.
  41. config BR2_GDB_VERSION_9_2
  42. bool "gdb 9.2.x"
  43. # gdbserver support missing
  44. depends on !BR2_riscv
  45. config BR2_GDB_VERSION_10
  46. bool "gdb 10.x"
  47. config BR2_GDB_VERSION_11
  48. bool "gdb 11.x"
  49. endchoice
  50. endif
  51. # If cross-gdb is not enabled, the latest stable version is chosen.
  52. config BR2_GDB_VERSION
  53. string
  54. default "arc-2020.09-release-gdb" if BR2_arc
  55. default "9.2" if BR2_GDB_VERSION_9_2
  56. default "10.2" if BR2_GDB_VERSION_10 || !BR2_PACKAGE_HOST_GDB
  57. default "11.2" if BR2_GDB_VERSION_11
  58. depends on BR2_PACKAGE_GDB || BR2_PACKAGE_HOST_GDB
  59. # recent gdb versions (>= 10) have gdbserver moved at the top-level,
  60. # which requires a different build logic.
  61. config BR2_PACKAGE_GDB_TOPLEVEL
  62. bool
  63. default y if BR2_arc
  64. default y if BR2_GDB_VERSION_10
  65. default y if BR2_GDB_VERSION_11
  66. default y if !BR2_PACKAGE_HOST_GDB
  67. depends on BR2_PACKAGE_GDB || BR2_PACKAGE_HOST_GDB