Config.in.host 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. choice
  29. prompt "Python support"
  30. default BR2_PACKAGE_HOST_GDB_NOPYTHON
  31. help
  32. Select the version of Python you wish to use
  33. config BR2_PACKAGE_HOST_GDB_NOPYTHON
  34. bool "None"
  35. help
  36. This option disables Python support in the cross gdb.
  37. config BR2_PACKAGE_HOST_GDB_PYTHON
  38. bool "Python 2"
  39. help
  40. This option enables the Python 2 support in the cross gdb.
  41. config BR2_PACKAGE_HOST_GDB_PYTHON3
  42. bool "Python 3"
  43. help
  44. This option enables the Python 3 support in the cross gdb.
  45. endchoice
  46. config BR2_PACKAGE_HOST_GDB_SIM
  47. bool "Simulator support"
  48. depends on !BR2_arc
  49. help
  50. This option enables the simulator support in the cross gdb.
  51. choice
  52. prompt "GDB debugger Version"
  53. default BR2_GDB_VERSION_10
  54. depends on !BR2_arc
  55. depends on !BR2_csky
  56. help
  57. Select the version of gdb you wish to use.
  58. config BR2_GDB_VERSION_9_2
  59. bool "gdb 9.2.x"
  60. # gdbserver support missing
  61. depends on !BR2_riscv
  62. config BR2_GDB_VERSION_10
  63. bool "gdb 10.x"
  64. config BR2_GDB_VERSION_11
  65. bool "gdb 11.x"
  66. endchoice
  67. endif
  68. # If cross-gdb is not enabled, the latest stable version is chosen.
  69. config BR2_GDB_VERSION
  70. string
  71. default "arc-2020.09-release-gdb" if BR2_arc
  72. default "4ecb98fbc2f94dbe01b69384afbc515107de73df" if BR2_csky
  73. default "9.2" if BR2_GDB_VERSION_9_2
  74. default "10.2" if BR2_GDB_VERSION_10 || !BR2_PACKAGE_HOST_GDB
  75. default "11.1" if BR2_GDB_VERSION_11
  76. depends on BR2_PACKAGE_GDB || BR2_PACKAGE_HOST_GDB
  77. # recent gdb versions (>= 10) have gdbserver moved at the top-level,
  78. # which requires a different build logic.
  79. config BR2_PACKAGE_GDB_TOPLEVEL
  80. bool
  81. default y if BR2_arc
  82. default y if BR2_GDB_VERSION_10
  83. default y if BR2_GDB_VERSION_11
  84. default y if !BR2_PACKAGE_HOST_GDB
  85. depends on BR2_PACKAGE_GDB || BR2_PACKAGE_HOST_GDB