diff options
author | Bryan Hundven <bryanhundven@gmail.com> | 2015-01-26 16:02:32 (GMT) |
---|---|---|
committer | Bryan Hundven <bryanhundven@gmail.com> | 2015-01-26 16:02:32 (GMT) |
commit | 0a6b755fea0385bc38d07cacc059258338b5be65 (patch) | |
tree | 97d3e802d87187bbae61c7c427a9303631dd8ace /scripts/build/debug/300-gdb.sh | |
parent | cf3fc4244ce0541c6fb671ff2004e83951be798d (diff) | |
parent | 42e6c434d7fb35860bb8e6a0303ffaf7d706d68d (diff) |
Merge pull request #24 from Christopher83/master
Add the support to choose, download and build latest Linaro toolchain components
Diffstat (limited to 'scripts/build/debug/300-gdb.sh')
-rw-r--r-- | scripts/build/debug/300-gdb.sh | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index 149a2f8..8fed3d0 100644 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -35,15 +35,6 @@ 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 @@ -51,13 +42,24 @@ do_debug_gdb_get() { if [ "${CT_GDB_CUSTOM}" = "y" ]; then CT_GetCustom "gdb" "${CT_GDB_VERSION}" "${CT_GDB_CUSTOM_LOCATION}" else + # 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/-.*//;' \ + )" + if [ x"${linaro_version}" = x"${CT_GDB_VERSION}" ]; then - CT_GetFile "gdb-${CT_GDB_VERSION}" \ - ftp://{sourceware.org,gcc.gnu.org}/pub/gdb/releases \ - {http,ftp,https}://ftp.gnu.org/pub/gnu/gdb + CT_GetFile "gdb-${CT_GDB_VERSION}" \ + ftp://{sourceware.org,gcc.gnu.org}/pub/gdb/releases \ + {http,ftp,https}://ftp.gnu.org/pub/gnu/gdb else - CT_GetFile "gdb-${CT_GDB_VERSION}" \ - "${linaro_base_url}/${linaro_series}/${linaro_version}/+download" + YYMM=`echo ${CT_GDB_VERSION} |cut -d- -f3 |${sed} -e 's,^..,,'` + CT_GetFile "gdb-${CT_GDB_VERSION}" \ + "http://launchpad.net/gdb-linaro/${linaro_series}/${linaro_version}/+download" \ + https://releases.linaro.org/${YYMM}/components/toolchain/gdb-linaro \ + http://cbuild.validation.linaro.org/snapshots fi fi fi |