aboutsummaryrefslogtreecommitdiff
path: root/scripts/build/debug
diff options
context:
space:
mode:
authorBryan Hundven <bryanhundven@gmail.com>2014-12-08 15:03:08 -0800
committerBryan Hundven <bryanhundven@gmail.com>2014-12-08 15:03:08 -0800
commit79422633cf2d0282ed2d637d2ba237cc3f4e6a8e (patch)
treeab8bf93a3d7e9217bb21fe8c9cd94b083653085e /scripts/build/debug
parent098c87e98aa0c4b07a632173ddfd72c93df49aad (diff)
downloadcrosstool-ng-79422633cf2d0282ed2d637d2ba237cc3f4e6a8e.tar.gz
crosstool-ng-79422633cf2d0282ed2d637d2ba237cc3f4e6a8e.tar.bz2
crosstool-ng-79422633cf2d0282ed2d637d2ba237cc3f4e6a8e.zip
scripts: Update download locations
This change updates the download locations to default to the official download site. For gcc and gdb, also separate out the linaro download locations so that if you are downloading the linaro variant, it skips trying to download from the official gcc mirror. This commit closes #3 Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'scripts/build/debug')
-rw-r--r--scripts/build/debug/300-gdb.sh14
-rw-r--r--scripts/build/debug/400-ltrace.sh2
2 files changed, 10 insertions, 6 deletions
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh
index 029a58fe..0c637241 100644
--- a/scripts/build/debug/300-gdb.sh
+++ b/scripts/build/debug/300-gdb.sh
@@ -51,16 +51,20 @@ do_debug_gdb_get() {
if [ "${CT_GDB_CUSTOM}" = "y" ]; then
CT_GetCustom "gdb" "${CT_GDB_VERSION}" "${CT_GDB_CUSTOM_LOCATION}"
else
- CT_GetFile "gdb-${CT_GDB_VERSION}" \
- {ftp,http}://ftp.gnu.org/pub/gnu/gdb \
- ftp://sources.redhat.com/pub/gdb/{,old-}releases \
- "${linaro_base_url}/${linaro_series}/${linaro_version}/+download"
+ if [ x"${linaro_release}" = x"" ]; 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 \
+ else
+ CT_GetFile "gdb-${CT_GDB_VERSION}" \
+ "${linaro_base_url}/${linaro_series}/${linaro_version}/+download"
+ fi
fi
fi
if [ "${need_ncurses_src}" = "y" ]; then
CT_GetFile "ncurses-${CT_DEBUG_GDB_NCURSES_VERSION}" .tar.gz \
- {ftp,http}://ftp.gnu.org/pub/gnu/ncurses \
+ {http,ftp,https}://ftp.gnu.org/pub/gnu/ncurses \
ftp://invisible-island.net/ncurses
fi
diff --git a/scripts/build/debug/400-ltrace.sh b/scripts/build/debug/400-ltrace.sh
index 44f8af24..01e80819 100644
--- a/scripts/build/debug/400-ltrace.sh
+++ b/scripts/build/debug/400-ltrace.sh
@@ -2,7 +2,7 @@
do_debug_ltrace_get() {
CT_GetFile "ltrace_${CT_LTRACE_VERSION}.orig" .tar.gz \
- {ftp,http}://ftp.de.debian.org/debian/pool/main/l/ltrace/
+ {ftp,http}://ftp.debian.org/debian/pool/main/l/ltrace/
# Create a link so that the following steps are easier to do:
CT_Pushd "${CT_TARBALLS_DIR}"
ltrace_ext=$(CT_GetFileExtension "ltrace_${CT_LTRACE_VERSION}.orig")