Browse Source

gdb-host: disable by default to fasten toolchain building

Waldemar Brodkorb 7 years ago
parent
commit
843c9483d7
2 changed files with 19 additions and 0 deletions
  1. 16 0
      target/config/Config.in.gdb
  2. 3 0
      toolchain/Makefile

+ 16 - 0
target/config/Config.in.gdb

@@ -1,6 +1,22 @@
 # This file is part of the OpenADK project. OpenADK is copyrighted
 # 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

+ 3 - 0
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