From 843c9483d71e59d8aa262e2cdfaf2ccf881727b9 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 30 Aug 2016 21:56:45 +0200 Subject: gdb-host: disable by default to fasten toolchain building --- target/config/Config.in.gdb | 16 ++++++++++++++++ toolchain/Makefile | 3 +++ 2 files changed, 19 insertions(+) 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 @@ -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 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 -- cgit v1.2.3