ソースを参照

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.
Waldemar Brodkorb 9 年 前
コミット
b8ae02c5ff

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

+ 0 - 0
package/gdb/patches/microblaze.patch → package/gdb/patches/7.8.2/microblaze.patch


+ 0 - 0
package/gdb/patches/patch-gdb_common_linux-ptrace_h → package/gdb/patches/7.8.2/patch-gdb_common_linux-ptrace_h


+ 0 - 0
package/gdb/patches/patch-gdb_common_signals_c → package/gdb/patches/7.8.2/patch-gdb_common_signals_c


+ 0 - 0
package/gdb/patches/patch-gdb_gdbserver_configure → package/gdb/patches/7.8.2/patch-gdb_gdbserver_configure


+ 0 - 0
package/gdb/patches/patch-gdb_linux-nat_c → package/gdb/patches/7.8.2/patch-gdb_linux-nat_c


+ 0 - 0
package/gdb/patches/patch-ltmain_sh → package/gdb/patches/7.8.2/patch-ltmain_sh


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

+ 0 - 0
package/gdbserver/patches/patch-gdb_common_linux-ptrace_c → package/gdbserver/patches/7.8.2/patch-gdb_common_linux-ptrace_c


+ 0 - 0
package/gdbserver/patches/patch-gdb_common_linux-ptrace_h → package/gdbserver/patches/7.8.2/patch-gdb_common_linux-ptrace_h


+ 0 - 0
package/gdbserver/patches/patch-gdb_gdbserver_linux-low_c → package/gdbserver/patches/7.8.2/patch-gdb_gdbserver_linux-low_c


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