summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-03-08 18:11:49 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-03-09 07:39:32 +0100
commitb8ae02c5ff75edb638ab67e487227973bc34fb2f (patch)
tree86e7f7258796aa13f95969e00312884bf39e2299
parentd1c7e084c6ac11bc8d45f24ce6e3a8b659f902b2 (diff)
add support for gdbserver on AVR32 devices
Happily I got the old gdb tarball from buildroot source repository. (thx Yann) Mirror the package and make it compile for native gdbserver. Patches need to be shuffled to version directories.
-rw-r--r--package/gdb/Makefile2
-rw-r--r--package/gdb/patches/7.8.2/microblaze.patch (renamed from package/gdb/patches/microblaze.patch)0
-rw-r--r--package/gdb/patches/7.8.2/patch-gdb_common_linux-ptrace_h (renamed from package/gdb/patches/patch-gdb_common_linux-ptrace_h)0
-rw-r--r--package/gdb/patches/7.8.2/patch-gdb_common_signals_c (renamed from package/gdb/patches/patch-gdb_common_signals_c)0
-rw-r--r--package/gdb/patches/7.8.2/patch-gdb_gdbserver_configure (renamed from package/gdb/patches/patch-gdb_gdbserver_configure)0
-rw-r--r--package/gdb/patches/7.8.2/patch-gdb_linux-nat_c (renamed from package/gdb/patches/patch-gdb_linux-nat_c)0
-rw-r--r--package/gdb/patches/7.8.2/patch-ltmain_sh (renamed from package/gdb/patches/patch-ltmain_sh)0
-rw-r--r--package/gdbserver/Makefile5
-rw-r--r--package/gdbserver/patches/7.8.2/patch-gdb_common_linux-ptrace_c (renamed from package/gdbserver/patches/patch-gdb_common_linux-ptrace_c)0
-rw-r--r--package/gdbserver/patches/7.8.2/patch-gdb_common_linux-ptrace_h (renamed from package/gdbserver/patches/patch-gdb_common_linux-ptrace_h)0
-rw-r--r--package/gdbserver/patches/7.8.2/patch-gdb_gdbserver_linux-low_c (renamed from package/gdbserver/patches/patch-gdb_gdbserver_linux-low_c)0
-rw-r--r--toolchain/gdb/Makefile.inc8
12 files changed, 10 insertions, 5 deletions
diff --git a/package/gdb/Makefile b/package/gdb/Makefile
index 3dbe4d2f9..85272567f 100644
--- a/package/gdb/Makefile
+++ b/package/gdb/Makefile
@@ -11,7 +11,7 @@ PKG_DEPENDS:= libthread-db libncurses libexpat zlib
PKG_BUILDDEP:= ncurses readline expat zlib
PKG_NOPARALLEL:= 1
-PKG_ARCH_DEPENDS:= !m68k
+PKG_ARCH_DEPENDS:= !m68k !avr32
PKG_BUILDDEP_UCLIBC:= libiconv-tiny
PKG_BUILDDEP_UCLIBC_NG:=libiconv-tiny
diff --git a/package/gdb/patches/microblaze.patch b/package/gdb/patches/7.8.2/microblaze.patch
index ce3f9b35b..ce3f9b35b 100644
--- a/package/gdb/patches/microblaze.patch
+++ b/package/gdb/patches/7.8.2/microblaze.patch
diff --git a/package/gdb/patches/patch-gdb_common_linux-ptrace_h b/package/gdb/patches/7.8.2/patch-gdb_common_linux-ptrace_h
index 51e2c3637..51e2c3637 100644
--- a/package/gdb/patches/patch-gdb_common_linux-ptrace_h
+++ b/package/gdb/patches/7.8.2/patch-gdb_common_linux-ptrace_h
diff --git a/package/gdb/patches/patch-gdb_common_signals_c b/package/gdb/patches/7.8.2/patch-gdb_common_signals_c
index 114f5b867..114f5b867 100644
--- a/package/gdb/patches/patch-gdb_common_signals_c
+++ b/package/gdb/patches/7.8.2/patch-gdb_common_signals_c
diff --git a/package/gdb/patches/patch-gdb_gdbserver_configure b/package/gdb/patches/7.8.2/patch-gdb_gdbserver_configure
index fb32187b2..fb32187b2 100644
--- a/package/gdb/patches/patch-gdb_gdbserver_configure
+++ b/package/gdb/patches/7.8.2/patch-gdb_gdbserver_configure
diff --git a/package/gdb/patches/patch-gdb_linux-nat_c b/package/gdb/patches/7.8.2/patch-gdb_linux-nat_c
index 9ba7254ca..9ba7254ca 100644
--- a/package/gdb/patches/patch-gdb_linux-nat_c
+++ b/package/gdb/patches/7.8.2/patch-gdb_linux-nat_c
diff --git a/package/gdb/patches/patch-ltmain_sh b/package/gdb/patches/7.8.2/patch-ltmain_sh
index 98afcfbc0..98afcfbc0 100644
--- a/package/gdb/patches/patch-ltmain_sh
+++ b/package/gdb/patches/7.8.2/patch-ltmain_sh
diff --git a/package/gdbserver/Makefile b/package/gdbserver/Makefile
index 096092ab9..c0e9ab9b4 100644
--- a/package/gdbserver/Makefile
+++ b/package/gdbserver/Makefile
@@ -9,8 +9,13 @@ PKG_DESCR:= remote programm debugger utility
PKG_SECTION:= app/debug
PKG_LIBC_DEPENDS:= !musl
+ifeq ($(ADK_TOOLCHAIN_GDB_6_7_1),y)
+DISTFILES:= gdb-6.7.1-avr32-2.1.5.tar.bz2
+WRKDIST= $(WRKDIR)/gdb-6.7.1-avr32-2.1.5
+else
DISTFILES:= gdb-${PKG_VERSION}.tar.xz
WRKDIST= ${WRKDIR}/gdb-${PKG_VERSION}
+endif
WRKSRC= ${WRKDIST}/gdb/gdbserver
include ${ADK_TOPDIR}/mk/package.mk
diff --git a/package/gdbserver/patches/patch-gdb_common_linux-ptrace_c b/package/gdbserver/patches/7.8.2/patch-gdb_common_linux-ptrace_c
index aec39df40..aec39df40 100644
--- a/package/gdbserver/patches/patch-gdb_common_linux-ptrace_c
+++ b/package/gdbserver/patches/7.8.2/patch-gdb_common_linux-ptrace_c
diff --git a/package/gdbserver/patches/patch-gdb_common_linux-ptrace_h b/package/gdbserver/patches/7.8.2/patch-gdb_common_linux-ptrace_h
index 1f8e5b9b4..1f8e5b9b4 100644
--- a/package/gdbserver/patches/patch-gdb_common_linux-ptrace_h
+++ b/package/gdbserver/patches/7.8.2/patch-gdb_common_linux-ptrace_h
diff --git a/package/gdbserver/patches/patch-gdb_gdbserver_linux-low_c b/package/gdbserver/patches/7.8.2/patch-gdb_gdbserver_linux-low_c
index ccb61c3a0..ccb61c3a0 100644
--- a/package/gdbserver/patches/patch-gdb_gdbserver_linux-low_c
+++ b/package/gdbserver/patches/7.8.2/patch-gdb_gdbserver_linux-low_c
diff --git a/toolchain/gdb/Makefile.inc b/toolchain/gdb/Makefile.inc
index cd41f2f1f..c0c87144d 100644
--- a/toolchain/gdb/Makefile.inc
+++ b/toolchain/gdb/Makefile.inc
@@ -12,8 +12,8 @@ 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
+PKG_HASH:= a34c65163a2428e24891466b1f095249bc6301b64cfe9480f3aba341b58c3434
+PKG_SITES:= http://www.openadk.org/distfiles/
+DISTFILES:= gdb-6.7.1-avr32-2.1.5.tar.bz2
+WRKDIST= $(WRKDIR)/gdb-6.7.1-avr32-2.1.5
endif