# HG changeset patch # User "Yann E. MORIN" # Date 1271869589 -7200 # Node ID d78dac957ebc522a319b3d8f8f2f5739415162de # Parent f5d5e279af95a3e2fe2322716bda7e1d9f48224e libc/newlib: don't do // downloads The newlib FTP site does not like // downloads, and quickly blocks the IP from the downloader. Override the number of chunks when downloading newlib. diff -r f5d5e279af95 -r d78dac957ebc scripts/build/libc/newlib.sh --- a/scripts/build/libc/newlib.sh Wed Apr 21 18:54:58 2010 +0200 +++ b/scripts/build/libc/newlib.sh Wed Apr 21 19:06:29 2010 +0200 @@ -14,9 +14,16 @@ } do_libc_get() { + local libc_src + local avr32headers_src + local save_chunks + libc_src="ftp://sources.redhat.com/pub/newlib" avr32headers_src="http://dev.doredevelopment.dk/avr32-toolchain/sources" + save_chunks="${CT_DOWNLOAD_MAX_CHUNKS}" + CT_DOWNLOAD_MAX_CHUNKS=1 + if [ -z "${CT_LIBC_NEWLIB_CVS}" ]; then CT_GetFile "newlib-${CT_LIBC_VERSION}" ${libc_src} else @@ -30,6 +37,8 @@ if [ "${CT_ATMEL_AVR32_HEADERS}" = "y" ]; then CT_GetFile "avr32headers" ${avr32headers_src} fi + + CT_DOWNLOAD_MAX_CHUNKS="${save_chunks}" } do_libc_extract() {