From b8ae02c5ff75edb638ab67e487227973bc34fb2f Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 8 Mar 2015 18:11:49 +0100 Subject: [PATCH] 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. --- package/gdb/Makefile | 2 +- package/gdb/patches/{ => 7.8.2}/microblaze.patch | 0 package/gdb/patches/{ => 7.8.2}/patch-gdb_common_linux-ptrace_h | 0 package/gdb/patches/{ => 7.8.2}/patch-gdb_common_signals_c | 0 package/gdb/patches/{ => 7.8.2}/patch-gdb_gdbserver_configure | 0 package/gdb/patches/{ => 7.8.2}/patch-gdb_linux-nat_c | 0 package/gdb/patches/{ => 7.8.2}/patch-ltmain_sh | 0 package/gdbserver/Makefile | 5 +++++ .../gdbserver/patches/{ => 7.8.2}/patch-gdb_common_linux-ptrace_c | 0 .../gdbserver/patches/{ => 7.8.2}/patch-gdb_common_linux-ptrace_h | 0 .../gdbserver/patches/{ => 7.8.2}/patch-gdb_gdbserver_linux-low_c | 0 toolchain/gdb/Makefile.inc | 8 ++++---- 12 files changed, 10 insertions(+), 5 deletions(-) rename package/gdb/patches/{ => 7.8.2}/microblaze.patch (100%) rename package/gdb/patches/{ => 7.8.2}/patch-gdb_common_linux-ptrace_h (100%) rename package/gdb/patches/{ => 7.8.2}/patch-gdb_common_signals_c (100%) rename package/gdb/patches/{ => 7.8.2}/patch-gdb_gdbserver_configure (100%) rename package/gdb/patches/{ => 7.8.2}/patch-gdb_linux-nat_c (100%) rename package/gdb/patches/{ => 7.8.2}/patch-ltmain_sh (100%) rename package/gdbserver/patches/{ => 7.8.2}/patch-gdb_common_linux-ptrace_c (100%) rename package/gdbserver/patches/{ => 7.8.2}/patch-gdb_common_linux-ptrace_h (100%) rename package/gdbserver/patches/{ => 7.8.2}/patch-gdb_gdbserver_linux-low_c (100%) 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 similarity index 100% rename from package/gdb/patches/microblaze.patch rename to 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 similarity index 100% rename from package/gdb/patches/patch-gdb_common_linux-ptrace_h rename to 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 similarity index 100% rename from package/gdb/patches/patch-gdb_common_signals_c rename to 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 similarity index 100% rename from package/gdb/patches/patch-gdb_gdbserver_configure rename to 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 similarity index 100% rename from package/gdb/patches/patch-gdb_linux-nat_c rename to 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 similarity index 100% rename from package/gdb/patches/patch-ltmain_sh rename to 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 similarity index 100% rename from package/gdbserver/patches/patch-gdb_common_linux-ptrace_c rename to 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 similarity index 100% rename from package/gdbserver/patches/patch-gdb_common_linux-ptrace_h rename to 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 similarity index 100% rename from package/gdbserver/patches/patch-gdb_gdbserver_linux-low_c rename to 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 -- 2.11.4.GIT