Browse Source

add support for old avr32 gdb

Waldemar Brodkorb 9 years ago
parent
commit
f219dad314
3 changed files with 29 additions and 1 deletions
  1. 17 0
      target/config/Config.in.toolchain
  2. 1 1
      toolchain/Makefile
  3. 11 0
      toolchain/gdb/Makefile.inc

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

+ 1 - 1
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

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