1.1 --- a/scripts/build/cc/gcc.sh Fri Jan 28 18:53:37 2011 +0100
1.2 +++ b/scripts/build/cc/gcc.sh Thu Feb 17 22:29:33 2011 +0100
1.3 @@ -4,6 +4,19 @@
1.4
1.5 # Download gcc
1.6 do_cc_get() {
1.7 + local linaro_version
1.8 + local linaro_series
1.9 + local linaro_base_url="http://launchpad.net/gcc-linaro"
1.10 +
1.11 +
1.12 + # Account for the Linaro versioning
1.13 + linaro_version="$( echo "${CT_CC_VERSION}" \
1.14 + |sed -r -e 's/^linaro-//;' \
1.15 + )"
1.16 + linaro_series="$( echo "${linaro_version}" \
1.17 + |sed -r -e 's/-.*//;' \
1.18 + )"
1.19 +
1.20 # Ah! gcc folks are kind of 'different': they store the tarballs in
1.21 # subdirectories of the same name! That's because gcc is such /crap/ that
1.22 # it is such /big/ that it needs being splitted for distribution! Sad. :-(
1.23 @@ -13,7 +26,8 @@
1.24 CT_GetFile "gcc-${CT_CC_VERSION}" \
1.25 {ftp,http}://ftp.gnu.org/gnu/gcc{,{,/releases}/gcc-${CT_CC_VERSION}} \
1.26 ftp://ftp.irisa.fr/pub/mirrors/gcc.gnu.org/gcc/releases/gcc-${CT_CC_VERSION} \
1.27 - ftp://ftp.uvsq.fr/pub/gcc/snapshots/${CT_CC_VERSION}
1.28 + ftp://ftp.uvsq.fr/pub/gcc/snapshots/${CT_CC_VERSION} \
1.29 + "${linaro_base_url}/${linaro_series}/${linaro_version}/+download"
1.30
1.31 # Starting with GCC 4.3, ecj is used for Java, and will only be
1.32 # built if the configure script finds ecj.jar at the top of the