diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-02-17 22:29:33 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-02-17 22:29:33 +0100 |
commit | 83a004e2c46f84ba6cee5aa69377a61ec7f528e2 (patch) | |
tree | a649477f39723d5577030a7360b248712117aa4b /scripts/build/cc | |
parent | 1339801661fb6ef50d36f50bed81b29d18a75da3 (diff) | |
download | crosstool-ng-83a004e2c46f84ba6cee5aa69377a61ec7f528e2.tar.gz crosstool-ng-83a004e2c46f84ba6cee5aa69377a61ec7f528e2.tar.bz2 crosstool-ng-83a004e2c46f84ba6cee5aa69377a61ec7f528e2.zip |
cc/gcc: add versions from Linaro
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts/build/cc')
-rw-r--r-- | scripts/build/cc/gcc.sh | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index c0a87743..113292a3 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -4,6 +4,19 @@ # Download gcc do_cc_get() { + local linaro_version + local linaro_series + local linaro_base_url="http://launchpad.net/gcc-linaro" + + + # Account for the Linaro versioning + linaro_version="$( echo "${CT_CC_VERSION}" \ + |sed -r -e 's/^linaro-//;' \ + )" + linaro_series="$( echo "${linaro_version}" \ + |sed -r -e 's/-.*//;' \ + )" + # Ah! gcc folks are kind of 'different': they store the tarballs in # subdirectories of the same name! That's because gcc is such /crap/ that # it is such /big/ that it needs being splitted for distribution! Sad. :-( @@ -13,7 +26,8 @@ do_cc_get() { CT_GetFile "gcc-${CT_CC_VERSION}" \ {ftp,http}://ftp.gnu.org/gnu/gcc{,{,/releases}/gcc-${CT_CC_VERSION}} \ ftp://ftp.irisa.fr/pub/mirrors/gcc.gnu.org/gcc/releases/gcc-${CT_CC_VERSION} \ - ftp://ftp.uvsq.fr/pub/gcc/snapshots/${CT_CC_VERSION} + ftp://ftp.uvsq.fr/pub/gcc/snapshots/${CT_CC_VERSION} \ + "${linaro_base_url}/${linaro_series}/${linaro_version}/+download" # Starting with GCC 4.3, ecj is used for Java, and will only be # built if the configure script finds ecj.jar at the top of the |