libc/newlib: add HTTP mirror

Add well-known HTTP mirror as a fallback.  This lets crosstool-ng
work when behind a HTTP/HTTPS only proxy.

Signed-off-by: Michael Hope <michaelh@juju.net.nz>
[yann.morin.1998@free.fr: split patch in two]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <aeb4a850d0786ee62dc2.1375559989@wanda>
Patchwork-Id: 264436
This commit is contained in:
Michael Hope 2013-08-01 20:24:35 +00:00
parent 5b5a1ade7f
commit 8d21f730a6

View File

@ -15,7 +15,8 @@ do_libc_get() {
CT_GetCustom "newlib" "${CT_LIBC_VERSION}" \
"${CT_LIBC_NEWLIB_CUSTOM_LOCATION}"
else # ! custom location
CT_GetFile "newlib-${CT_LIBC_VERSION}" ${libc_src}
CT_GetFile "newlib-${CT_LIBC_VERSION}" ${libc_src} \
http://mirrors.kernel.org/sources.redhat.com/newlib
fi # ! custom location
if [ "${CT_ATMEL_AVR32_HEADERS}" = "y" ]; then