diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-04-21 19:06:29 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-04-21 19:06:29 +0200 |
commit | 8743f16f65762979c94f6ba2a653a559fde3f5a9 (patch) | |
tree | a626007f1b1e07ec6c78cc7cc9a81949f0c3cf09 /scripts/build/libc | |
parent | 49f0895649d925fa8a66c7c5157aca06e2f13acd (diff) | |
download | crosstool-ng-8743f16f65762979c94f6ba2a653a559fde3f5a9.tar.gz crosstool-ng-8743f16f65762979c94f6ba2a653a559fde3f5a9.tar.bz2 crosstool-ng-8743f16f65762979c94f6ba2a653a559fde3f5a9.zip |
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.
Diffstat (limited to 'scripts/build/libc')
-rw-r--r-- | scripts/build/libc/newlib.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh index 23c6d841..4533235d 100644 --- a/scripts/build/libc/newlib.sh +++ b/scripts/build/libc/newlib.sh @@ -14,9 +14,16 @@ libc_newlib_version() { } 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 @@ do_libc_get() { if [ "${CT_ATMEL_AVR32_HEADERS}" = "y" ]; then CT_GetFile "avr32headers" ${avr32headers_src} fi + + CT_DOWNLOAD_MAX_CHUNKS="${save_chunks}" } do_libc_extract() { |