diff options
Diffstat (limited to 'toolchain/gdb')
-rw-r--r-- | toolchain/gdb/Makefile | 14 | ||||
-rw-r--r-- | toolchain/gdb/patches/200-linux_musl.patch | 22 | ||||
-rw-r--r-- | toolchain/gdb/patches/600-fix-compile-flag-mismatch.patch | 25 |
3 files changed, 42 insertions, 19 deletions
diff --git a/toolchain/gdb/Makefile b/toolchain/gdb/Makefile index 515b1f105..6d4c16d92 100644 --- a/toolchain/gdb/Makefile +++ b/toolchain/gdb/Makefile @@ -7,11 +7,15 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gdb -PKG_VERSION:=linaro-7.2-2011.03-0 +PKG_REV:=7.5-2012.12-1 +PKG_VERSION_MAJOR:=7.5 +PKG_VERSION:=linaro-$(PKG_REV) PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 -PKG_MD5SUM:=747b655418058964451eff7c7a15013c -PKG_SOURCE_URL:=http://launchpad.net/gdb-linaro/7.2/7.2-2011.03-0/+download/ +PKG_MD5SUM:=016cf2c5ed06adf7c601e3301a14e370 +PKG_SOURCE_URL:=http://launchpad.net/gdb-linaro/$(PKG_VERSION_MAJOR)/$(PKG_REV)/+download/ + +HOST_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/toolchain-build.mk @@ -33,10 +37,6 @@ define Host/Configure ); endef -define Host/Compile - $(MAKE) -C $(HOST_BUILD_DIR) -endef - define Host/Install mkdir -p $(TOOLCHAIN_DIR)/bin $(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/gdb $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb diff --git a/toolchain/gdb/patches/200-linux_musl.patch b/toolchain/gdb/patches/200-linux_musl.patch new file mode 100644 index 000000000..738bc8b55 --- /dev/null +++ b/toolchain/gdb/patches/200-linux_musl.patch @@ -0,0 +1,22 @@ +diff -urN gdb-linaro-7.5-2012.09/config.sub gdb-linaro-7.5-2012.09.new/config.sub +--- gdb-linaro-7.5-2012.09/config.sub 2012-09-13 16:01:23.000000000 +0200 ++++ gdb-linaro-7.5-2012.09.new/config.sub 2012-11-21 18:19:43.516916352 +0100 +@@ -126,7 +126,8 @@ + linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ + knetbsd*-gnu* | netbsd*-gnu* | \ + kopensolaris*-gnu* | \ +- storm-chaos* | os2-emx* | rtmk-nova*) ++ storm-chaos* | os2-emx* | rtmk-nova* | \ ++ linux-musl*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; +@@ -1360,7 +1361,7 @@ + | -chorusos* | -chorusrdb* | -cegcc* \ + | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -linux-android* \ +- | -linux-newlib* | -linux-uclibc* \ ++ | -linux-newlib* | -linux-uclibc* | -linux-musl* \ + | -uxpv* | -beos* | -mpeix* | -udk* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ diff --git a/toolchain/gdb/patches/600-fix-compile-flag-mismatch.patch b/toolchain/gdb/patches/600-fix-compile-flag-mismatch.patch index 089ab8c5a..517cf12b0 100644 --- a/toolchain/gdb/patches/600-fix-compile-flag-mismatch.patch +++ b/toolchain/gdb/patches/600-fix-compile-flag-mismatch.patch @@ -1,26 +1,27 @@ ---- a/gdb/configure -+++ b/gdb/configure -@@ -988,7 +988,7 @@ CPP +--- a/gdb/configure 2012-09-13 16:01:22.000000000 +0200 ++++ b/gdb/configure 2012-10-12 17:48:06.863908023 +0200 +@@ -828,8 +828,7 @@ YACC YFLAGS XMKMF' --ac_subdirs_all='doc testsuite -+ac_subdirs_all='doc - gdbtk +-ac_subdirs_all='testsuite +-gdbtk ++ac_subdirs_all='gdbtk multi-ice gdbserver' -@@ -7881,7 +7881,7 @@ fi +@@ -5023,7 +5022,7 @@ --subdirs="$subdirs doc testsuite" -+subdirs="$subdirs doc" + +-subdirs="$subdirs testsuite" ++subdirs="$subdirs" # Check whether to support alternative target configurations ---- a/gdb/gdbserver/configure -+++ b/gdb/gdbserver/configure -@@ -2152,7 +2152,7 @@ $as_echo "$as_me: error: \`$ac_var' was +--- a/gdb/gdbserver/configure 2012-09-13 16:01:22.000000000 +0200 ++++ b/gdb/gdbserver/configure 2012-10-12 17:49:29.775910147 +0200 +@@ -2173,7 +2173,7 @@ ac_cache_corrupted=: ;; ,);; *) |