summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--target/config/Config.in.gdb16
-rw-r--r--toolchain/Makefile3
2 files changed, 19 insertions, 0 deletions
diff --git a/target/config/Config.in.gdb b/target/config/Config.in.gdb
index bbde9df6c..0e5062bb2 100644
--- a/target/config/Config.in.gdb
+++ b/target/config/Config.in.gdb
@@ -2,6 +2,22 @@
# material, please see the LICENCE file in the top-level directory.
choice
+prompt "GNU debugger"
+
+config ADK_TOOLCHAIN_WITHOUT_GDB
+ bool "disabled"
+ help
+ Disable GDB for the host.
+
+config ADK_TOOLCHAIN_WITH_GDB
+ bool "enabled"
+ help
+ Enable GDB for the host. Version selection will be used
+ for gdb/gdbserver for the target.
+
+endchoice
+
+choice
prompt "GNU debugger version"
default ADK_TOOLCHAIN_GDB_H8300_GIT if ADK_TARGET_ARCH_H8300
default ADK_TOOLCHAIN_GDB_NDS32 if ADK_TARGET_ARCH_NDS32
diff --git a/toolchain/Makefile b/toolchain/Makefile
index 9cafeeda3..0ac3a5dba 100644
--- a/toolchain/Makefile
+++ b/toolchain/Makefile
@@ -45,11 +45,14 @@ TARGETS+=elf2flt
ELF2FLT:=elf2flt-install
endif
+ifeq ($(ADK_TOOLCHAIN_WITH_GDB),y)
# disable gdb for some architectures
ifeq ($(ADK_TARGET_ARCH_ARC)$(ADK_TARGET_ARCH_CR16)$(ADK_TARGET_ARCH_EPIPHANY)$(ADK_TARGET_ARCH_METAG)$(ADK_TARGET_ARCH_NDS32)$(ADK_TARGET_ARCH_OR1K),)
TARGETS+=gdb
GDB:=gdb-install
endif
+endif
+
ifeq (${ADK_PRELINK},y)
TARGETS+=prelink-cross
endif