From dcce8bef0e969650f42b73345cc2382f051675df Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 27 Jul 2017 12:16:25 -0700 Subject: buildgcc: Update to gdb 8.0 and expat 2.2.1 Among other improvements, the new GDB has a new GDB/CLI command to erase flash memory and a few Python scripting enhancements. Change-Id: Ie3852d5bc74617d3e05509e19bbd1caa281da3e0 Signed-off-by: Stefan Reinauer Reviewed-on: https://review.coreboot.org/20799 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Martin Roth --- util/crossgcc/buildgcc | 8 ++++---- util/crossgcc/patches/gdb-7.12_amd64.patch | 15 --------------- util/crossgcc/patches/gdb-7.12_no-doc.patch | 12 ------------ util/crossgcc/patches/gdb-7.12_pythonhome.patch | 19 ------------------- util/crossgcc/patches/gdb-8.0_amd64.patch | 15 +++++++++++++++ util/crossgcc/patches/gdb-8.0_no-doc.patch | 12 ++++++++++++ util/crossgcc/patches/gdb-8.0_pythonhome.patch | 19 +++++++++++++++++++ util/crossgcc/sum/expat-2.1.1.tar.bz2.cksum | 1 - util/crossgcc/sum/expat-2.2.1.tar.bz2.cksum | 1 + util/crossgcc/sum/gdb-7.12.tar.xz.cksum | 1 - util/crossgcc/sum/gdb-8.0.tar.xz.cksum | 1 + 11 files changed, 52 insertions(+), 52 deletions(-) delete mode 100644 util/crossgcc/patches/gdb-7.12_amd64.patch delete mode 100644 util/crossgcc/patches/gdb-7.12_no-doc.patch delete mode 100644 util/crossgcc/patches/gdb-7.12_pythonhome.patch create mode 100644 util/crossgcc/patches/gdb-8.0_amd64.patch create mode 100644 util/crossgcc/patches/gdb-8.0_no-doc.patch create mode 100644 util/crossgcc/patches/gdb-8.0_pythonhome.patch delete mode 100644 util/crossgcc/sum/expat-2.1.1.tar.bz2.cksum create mode 100644 util/crossgcc/sum/expat-2.2.1.tar.bz2.cksum delete mode 100644 util/crossgcc/sum/gdb-7.12.tar.xz.cksum create mode 100644 util/crossgcc/sum/gdb-8.0.tar.xz.cksum (limited to 'util') diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index fc44ff3792..724a4cb5b3 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -18,8 +18,8 @@ cd $(dirname $0) -CROSSGCC_DATE="June 13th, 2017" -CROSSGCC_VERSION="1.45" +CROSSGCC_DATE="July 27th, 2017" +CROSSGCC_VERSION="1.46" CROSSGCC_COMMIT=$( git describe ) # default settings @@ -42,10 +42,10 @@ LIBELF_VERSION=0.8.13 GCC_VERSION=6.3.0 GCC_AUTOCONF_VERSION=2.69 BINUTILS_VERSION=2.28 -GDB_VERSION=7.12 +GDB_VERSION=8.0 IASL_VERSION=20161222 PYTHON_VERSION=3.5.1 -EXPAT_VERSION=2.1.1 +EXPAT_VERSION=2.2.1 # CLANG version number CLANG_VERSION=4.0.0 MAKE_VERSION=4.2.1 diff --git a/util/crossgcc/patches/gdb-7.12_amd64.patch b/util/crossgcc/patches/gdb-7.12_amd64.patch deleted file mode 100644 index 39e6fab399..0000000000 --- a/util/crossgcc/patches/gdb-7.12_amd64.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff -urN gdb-7.12.orig/gdb/configure.tgt gdb-7.12/gdb/configure.tgt ---- gdb-7.12.orig/gdb/configure.tgt 2016-02-09 19:19:39.000000000 -0800 -+++ gdb-7.12/gdb/configure.tgt 2016-04-21 17:42:32.628433139 -0700 -@@ -681,6 +681,11 @@ - i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \ - obsd-tdep.o bsd-uthread.o solib-svr4.o" - ;; -+x86_64-*-*) -+ # Target: amd64 -+ gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o" -+ ;; -+ - xtensa*-*-linux*) gdb_target=linux - # Target: GNU/Linux Xtensa - gdb_target_obs="xtensa-tdep.o xtensa-config.o xtensa-linux-tdep.o \ diff --git a/util/crossgcc/patches/gdb-7.12_no-doc.patch b/util/crossgcc/patches/gdb-7.12_no-doc.patch deleted file mode 100644 index 2c5e571e0f..0000000000 --- a/util/crossgcc/patches/gdb-7.12_no-doc.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -urN gdb-7.12.orig/gdb/Makefile.in gdb-7.12/gdb/Makefile.in ---- gdb-7.12.orig/gdb/Makefile.in 2016-02-24 01:55:15.000000000 -0800 -+++ gdb-7.12/gdb/Makefile.in 2016-04-21 17:44:32.721472633 -0700 -@@ -1092,7 +1092,7 @@ - - TSOBS = inflow.o - --SUBDIRS = doc @subdirs@ data-directory $(GNULIB_BUILDDIR) -+SUBDIRS = @subdirs@ data-directory $(GNULIB_BUILDDIR) - CLEANDIRS = $(SUBDIRS) - - # List of subdirectories in the build tree that must exist. diff --git a/util/crossgcc/patches/gdb-7.12_pythonhome.patch b/util/crossgcc/patches/gdb-7.12_pythonhome.patch deleted file mode 100644 index aea8c0263a..0000000000 --- a/util/crossgcc/patches/gdb-7.12_pythonhome.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff -urN gdb-7.12.orig/gdb/python/python.c gdb-7.12/gdb/python/python.c ---- gdb-7.12.orig/gdb/python/python.c 2016-02-09 19:19:39.000000000 -0800 -+++ gdb-7.12/gdb/python/python.c 2016-04-21 17:45:39.119833428 -0700 -@@ -1748,6 +1748,15 @@ - #endif - #endif - -+ char readlinkbuffer[BUFSIZ]; -+ int readlinks = readlink("/proc/self/exe", readlinkbuffer, BUFSIZ - 1); -+ readlinkbuffer[readlinks] = 0; -+ char *executeablepath = dirname(readlinkbuffer); -+ char *pythonhome = malloc(strlen(executeablepath) + strlen("/../") + 2); -+ strcpy(pythonhome, executeablepath); -+ strcat(pythonhome, "/../"); -+ setenv("PYTHONHOME", pythonhome, 1); -+ - Py_Initialize (); - PyEval_InitThreads (); - diff --git a/util/crossgcc/patches/gdb-8.0_amd64.patch b/util/crossgcc/patches/gdb-8.0_amd64.patch new file mode 100644 index 0000000000..3a00330543 --- /dev/null +++ b/util/crossgcc/patches/gdb-8.0_amd64.patch @@ -0,0 +1,15 @@ +diff -urN gdb-8.0.orig/gdb/configure.tgt gdb-8.0/gdb/configure.tgt +--- gdb-8.0.orig/gdb/configure.tgt 2016-02-09 19:19:39.000000000 -0800 ++++ gdb-8.0/gdb/configure.tgt 2016-04-21 17:42:32.628433139 -0700 +@@ -681,6 +681,11 @@ + i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \ + obsd-tdep.o bsd-uthread.o solib-svr4.o" + ;; ++x86_64-*-*) ++ # Target: amd64 ++ gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o" ++ ;; ++ + xtensa*-*-linux*) gdb_target=linux + # Target: GNU/Linux Xtensa + gdb_target_obs="xtensa-tdep.o xtensa-config.o xtensa-linux-tdep.o \ diff --git a/util/crossgcc/patches/gdb-8.0_no-doc.patch b/util/crossgcc/patches/gdb-8.0_no-doc.patch new file mode 100644 index 0000000000..926ba3068c --- /dev/null +++ b/util/crossgcc/patches/gdb-8.0_no-doc.patch @@ -0,0 +1,12 @@ +diff -urN gdb-8.0.orig/gdb/Makefile.in gdb-8.0/gdb/Makefile.in +--- gdb-8.0.orig/gdb/Makefile.in 2016-02-24 01:55:15.000000000 -0800 ++++ gdb-8.0/gdb/Makefile.in 2016-04-21 17:44:32.721472633 -0700 +@@ -1092,7 +1092,7 @@ + + TSOBS = inflow.o + +-SUBDIRS = doc @subdirs@ data-directory $(GNULIB_BUILDDIR) ++SUBDIRS = @subdirs@ data-directory $(GNULIB_BUILDDIR) + CLEANDIRS = $(SUBDIRS) + + # List of subdirectories in the build tree that must exist. diff --git a/util/crossgcc/patches/gdb-8.0_pythonhome.patch b/util/crossgcc/patches/gdb-8.0_pythonhome.patch new file mode 100644 index 0000000000..d0c1427e77 --- /dev/null +++ b/util/crossgcc/patches/gdb-8.0_pythonhome.patch @@ -0,0 +1,19 @@ +diff -urN gdb-8.0.orig/gdb/python/python.c gdb-8.0/gdb/python/python.c +--- gdb-8.0.orig/gdb/python/python.c 2016-02-09 19:19:39.000000000 -0800 ++++ gdb-8.0/gdb/python/python.c 2016-04-21 17:45:39.119833428 -0700 +@@ -1748,6 +1748,15 @@ + #endif + #endif + ++ char readlinkbuffer[BUFSIZ]; ++ int readlinks = readlink("/proc/self/exe", readlinkbuffer, BUFSIZ - 1); ++ readlinkbuffer[readlinks] = 0; ++ char *executeablepath = dirname(readlinkbuffer); ++ char *pythonhome = malloc(strlen(executeablepath) + strlen("/../") + 2); ++ strcpy(pythonhome, executeablepath); ++ strcat(pythonhome, "/../"); ++ setenv("PYTHONHOME", pythonhome, 1); ++ + Py_Initialize (); + PyEval_InitThreads (); + diff --git a/util/crossgcc/sum/expat-2.1.1.tar.bz2.cksum b/util/crossgcc/sum/expat-2.1.1.tar.bz2.cksum deleted file mode 100644 index 882e501bf2..0000000000 --- a/util/crossgcc/sum/expat-2.1.1.tar.bz2.cksum +++ /dev/null @@ -1 +0,0 @@ -ff91419882ac52151050dad0ee8190645fbeee08 tarballs/expat-2.1.1.tar.bz2 diff --git a/util/crossgcc/sum/expat-2.2.1.tar.bz2.cksum b/util/crossgcc/sum/expat-2.2.1.tar.bz2.cksum new file mode 100644 index 0000000000..6ccdfb6dec --- /dev/null +++ b/util/crossgcc/sum/expat-2.2.1.tar.bz2.cksum @@ -0,0 +1 @@ +f45eb724f182776a9cacec9ed70d549e87198987 tarballs/expat-2.2.1.tar.bz2 diff --git a/util/crossgcc/sum/gdb-7.12.tar.xz.cksum b/util/crossgcc/sum/gdb-7.12.tar.xz.cksum deleted file mode 100644 index 61334c9543..0000000000 --- a/util/crossgcc/sum/gdb-7.12.tar.xz.cksum +++ /dev/null @@ -1 +0,0 @@ -1a6a0f2fe04d6ac9ba85048af35610e0fc217300 tarballs/gdb-7.12.tar.xz diff --git a/util/crossgcc/sum/gdb-8.0.tar.xz.cksum b/util/crossgcc/sum/gdb-8.0.tar.xz.cksum new file mode 100644 index 0000000000..fb42fe2e77 --- /dev/null +++ b/util/crossgcc/sum/gdb-8.0.tar.xz.cksum @@ -0,0 +1 @@ +148c8e783ebf9b281241d0566db59961191ec64d tarballs/gdb-8.0.tar.xz -- cgit v1.2.3