summaryrefslogtreecommitdiff
path: root/scripts/build/libc
diff options
context:
space:
mode:
authorBryan Hundven <bryanhundven@gmail.com>2015-02-02 04:55:45 (GMT)
committerBryan Hundven <bryanhundven@gmail.com>2015-02-02 05:00:14 (GMT)
commit7b8d76ed5690c2e6490f35794726ffddf6e34ee4 (patch)
tree88f5d648df86ea7c91d2343633bec7cc07462e6e /scripts/build/libc
parentefd8225d2ae1745a6cc797323777dacb08430fca (diff)
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')
-rw-r--r--scripts/build/libc/glibc.sh1
-rw-r--r--scripts/build/libc/newlib.sh3
2 files changed, 3 insertions, 1 deletions
diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh
index 971d326..a064c49 100644
--- a/scripts/build/libc/glibc.sh
+++ b/scripts/build/libc/glibc.sh
@@ -50,6 +50,7 @@ do_libc_get() {
esac
if ! CT_GetFile "glibc-${addon}-${CT_LIBC_VERSION}" \
+ http://mirrors.kernel.org/sourceware/glibc \
{http,ftp,https}://ftp.gnu.org/gnu/glibc \
ftp://{sourceware.org,gcc.gnu.org}/pub/glibc/{releases,snapshots}
then
diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh
index 9d42035..af04a6d 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}" \