From 7b8d76ed5690c2e6490f35794726ffddf6e34ee4 Mon Sep 17 00:00:00 2001 From: Bryan Hundven Date: Sun, 1 Feb 2015 20:55:45 -0800 Subject: 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 --- scripts/build/libc/glibc.sh | 1 + scripts/build/libc/newlib.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/build/libc') diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh index 971d3260..a064c496 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 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}" \ -- cgit v1.2.3