aboutsummaryrefslogtreecommitdiff
path: root/scripts/build/libc/newlib.sh
diff options
context:
space:
mode:
authorBryan Hundven <bryanhundven@gmail.com>2015-02-01 20:55:45 -0800
committerBryan Hundven <bryanhundven@gmail.com>2015-02-01 21:00:14 -0800
commit7b8d76ed5690c2e6490f35794726ffddf6e34ee4 (patch)
tree88f5d648df86ea7c91d2343633bec7cc07462e6e /scripts/build/libc/newlib.sh
parentefd8225d2ae1745a6cc797323777dacb08430fca (diff)
downloadcrosstool-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/libc/newlib.sh')
-rw-r--r--scripts/build/libc/newlib.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh
index 9d42035e..af04a6d1 100644
--- a/scripts/build/libc/newlib.sh
+++ b/scripts/build/libc/newlib.sh
@@ -10,7 +10,8 @@ LIBC_NEWLIB_AVR_HDRS_BASE="avr-headers-3.2.3.970"
LIBC_NEWLIB_AVR_HDRS_EXT=".zip"
do_libc_get() {
- local libc_src="ftp://sourceware.org/pub/newlib"
+ local libc_src="{http://mirrors.kernel.org/sourceware/newlib,
+ ftp://sourceware.org/pub/newlib}"
if [ "${CT_LIBC_NEWLIB_CUSTOM}" = "y" ]; then
CT_GetCustom "newlib" "${CT_LIBC_VERSION}" \