Config.in.host 2.3 KB

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