summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-02-14 10:49:13 -0600
committerWaldemar Brodkorb <wbx@openadk.org>2015-02-14 10:49:13 -0600
commitf219dad314e8aa6cde751569027603948a73c823 (patch)
tree2c71158dacc3be3d06968d9cb97f09581ed6d77d
parentfefe22da62eab0fcb5eccde2a0d189d3b8f21cf2 (diff)
add support for old avr32 gdb
-rw-r--r--target/config/Config.in.toolchain17
-rw-r--r--toolchain/Makefile2
-rw-r--r--toolchain/gdb/Makefile.inc11
3 files changed, 29 insertions, 1 deletions
diff --git a/target/config/Config.in.toolchain b/target/config/Config.in.toolchain
index 6acd860fd..8e104b4c1 100644
--- a/target/config/Config.in.toolchain
+++ b/target/config/Config.in.toolchain
@@ -95,6 +95,23 @@ config ADK_TOOLCHAIN_BINUTILS_GIT
endchoice
+choice
+prompt "GNU debugger version"
+
+config ADK_TOOLCHAIN_GDB_7_8_2
+ bool "7.8.2"
+ depends on !ADK_TARGET_ARCH_AVR32
+
+config ADK_TOOLCHAIN_GDB_6_7_1
+ bool "6.7.1"
+ depends on ADK_TARGET_ARCH_AVR32
+
+config ADK_TOOLCHAIN_GDB_GIT
+ bool "git"
+ depends on !ADK_TARGET_ARCH_AVR32
+
+endchoice
+
config ADK_TARGET_CFLAGS_OPT
string
default "-Os -pipe" if ADK_TARGET_CFLAGS_OPT_OS
diff --git a/toolchain/Makefile b/toolchain/Makefile
index f80a3359e..23f206ee7 100644
--- a/toolchain/Makefile
+++ b/toolchain/Makefile
@@ -40,7 +40,7 @@ ELF2FLT:=elf2flt-install
endif
# disable gdb for arc and avr32
-ifeq ($(ADK_TARGET_ARCH_ARC)$(ADK_TARGET_ARCH_AVR32),)
+ifeq ($(ADK_TARGET_ARCH_ARC),)
TARGETS+=gdb
GDB:=gdb-install
endif
diff --git a/toolchain/gdb/Makefile.inc b/toolchain/gdb/Makefile.inc
index edfec2cd8..cd41f2f1f 100644
--- a/toolchain/gdb/Makefile.inc
+++ b/toolchain/gdb/Makefile.inc
@@ -2,7 +2,18 @@
# material, please see the LICENCE file in the top-level directory.
PKG_NAME:= gdb
+ifeq ($(ADK_TOOLCHAIN_GDB_7_8_2),y)
PKG_VERSION:= 7.8.2
PKG_RELEASE:= 1
PKG_HASH:= 605954d5747d5f08ea4b7f48e958d1ebbf39265e18f7f36738deeabb83744485
PKG_SITES:= ${MASTER_SITE_GNU:=gdb/}
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz
+endif
+ifeq ($(ADK_TOOLCHAIN_GDB_6_7_1),y)
+PKG_VERSION:= 6.7.1
+PKG_RELEASE:= 1
+PKG_HASH:= d763a458c88d4718aa19060d003de4e884f4ac87a9e88d2d35e776b53eeca2f4
+PKG_SITES:= http://distribute.atmel.no/tools/avr32/old/avr32gnutoolchain/v2.4.2/source/
+DISTFILES:= avr32-gdb-6.7.1.atmel.1.0.4.tar.gz
+WRKDIST= $(WRKDIR)/gdb-6.7.1.atmel.1.0.4
+endif