From a59b794f9c84bd797f986b56aef88f44d4277d94 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Thu, 17 Feb 2011 23:05:34 +0100 Subject: debug/gdb: add versions from Linaro Signed-off-by: "Yann E. MORIN" diff --git a/config/debug/gdb.in b/config/debug/gdb.in index 3a00589..e9418b5 100644 --- a/config/debug/gdb.in +++ b/config/debug/gdb.in @@ -15,6 +15,12 @@ choice # Don't remove next line # CT_INSERT_VERSION_BELOW +config GDB_V_linaro_7_2_2011_02_0 + bool + prompt "linaro-7.2-2011.02-0 (EXPERIMENTAL)" + depends on EXPERIMENTAL + select GDB_7_0_or_later + config GDB_V_7_2 bool prompt "7.2 (EXPERIMENTAL)" @@ -52,6 +58,7 @@ config GDB_VERSION string # Don't remove next line # CT_INSERT_VERSION_STRING_BELOW + default "linaro-7.2-2011.02-0" if GDB_V_linaro_7_2_2011_02_0 default "7.2" if GDB_V_7_2 default "7.1" if GDB_V_7_1 default "7.0.1" if GDB_V_7_0_1 diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index 6f794f2..decc7da 100644 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -33,12 +33,25 @@ do_debug_gdb_parts() { } do_debug_gdb_get() { + local linaro_version + local linaro_series + local linaro_base_url="http://launchpad.net/gdb-linaro" + + # Account for the Linaro versioning + linaro_version="$( echo "${CT_GDB_VERSION}" \ + |sed -r -e 's/^linaro-//;' \ + )" + linaro_series="$( echo "${linaro_version}" \ + |sed -r -e 's/-.*//;' \ + )" + do_debug_gdb_parts if [ "${do_gdb}" = "y" ]; then CT_GetFile "gdb-${CT_GDB_VERSION}" \ {ftp,http}://ftp.gnu.org/pub/gnu/gdb \ - ftp://sources.redhat.com/pub/gdb/{,old-}releases + ftp://sources.redhat.com/pub/gdb/{,old-}releases \ + "${linaro_base_url}/${linaro_series}/${linaro_version}/+download" fi if [ "${do_ncurses}" = "y" ]; then -- cgit v0.10.2-6-g49f6