diff options
author | Bryan Hundven <bryanhundven@gmail.com> | 2015-02-01 20:55:45 -0800 |
---|---|---|
committer | Bryan Hundven <bryanhundven@gmail.com> | 2015-02-01 21:00:14 -0800 |
commit | 7b8d76ed5690c2e6490f35794726ffddf6e34ee4 (patch) | |
tree | 88f5d648df86ea7c91d2343633bec7cc07462e6e /scripts/build/cc | |
parent | efd8225d2ae1745a6cc797323777dacb08430fca (diff) | |
download | crosstool-ng-7b8d76ed5690c2e6490f35794726ffddf6e34ee4.tar.gz crosstool-ng-7b8d76ed5690c2e6490f35794726ffddf6e34ee4.tar.bz2 crosstool-ng-7b8d76ed5690c2e6490f35794726ffddf6e34ee4.zip |
scripts/*/*.sh: prioritize http downloads
Prirotize http downloads before ftp downloads.
By having http download first, those using proxy will work with the
current download mechnism.
This tells me that that mechnism needs to be updated.
(proxy support and/or kconfig toggles)
closes #3
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Diffstat (limited to 'scripts/build/cc')
-rw-r--r-- | scripts/build/cc/gcc.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index ed78aa15..500c9e73 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -23,8 +23,8 @@ do_cc_get() { # Also, Split out linaro mirrors, so that downloads happen faster. if [ x"${linaro_version}" = x"${CT_CC_VERSION}" ]; then CT_GetFile "gcc-${CT_CC_VERSION}" \ - ftp://{gcc.gnu.org,sourceware.org}/pub/gcc/releases/gcc-${CT_CC_VERSION} \ - {http,ftp,https}://ftp.gnu.org/gnu/gcc/gcc-${CT_CC_VERSION} + {http,ftp,https}://ftp.gnu.org/gnu/gcc/gcc-${CT_CC_VERSION} \ + ftp://{gcc.gnu.org,sourceware.org}/pub/gcc/releases/gcc-${CT_CC_VERSION} else YYMM=`echo ${CT_CC_VERSION} |cut -d- -f3 |${sed} -e 's,^..,,'` CT_GetFile "gcc-${CT_CC_VERSION}" \ @@ -39,7 +39,9 @@ do_cc_get() { # GCC source tree, which will not be there unless we get it and # put it there ourselves if [ "${CT_CC_LANG_JAVA_USE_ECJ}" = "y" ]; then - CT_GetFile ecj-latest .jar ftp://gcc.gnu.org/pub/java \ + CT_GetFile ecj-latest .jar http://mirrors.kernel.org/sourceware/java/ \ + http://crosstool-ng.org/pub/java \ + ftp://gcc.gnu.org/pub/java \ ftp://sourceware.org/pub/java fi } |