# HG changeset patch # User "Yann E. MORIN" # Date 1297978173 -3600 # Node ID e85077497eb1214642d124d5d6717a22920a37b8 # Parent a3818c3b03e053adb8f6b7e6cf326f16a7f0c4aa cc/gcc: add versions from Linaro Signed-off-by: "Yann E. MORIN" diff -r a3818c3b03e0 -r e85077497eb1 config/cc/gcc.in --- a/config/cc/gcc.in Thu Feb 17 21:54:07 2011 +0100 +++ b/config/cc/gcc.in Thu Feb 17 22:29:33 2011 +0100 @@ -19,6 +19,12 @@ # Don't remove next line # CT_INSERT_VERSION_BELOW +config CC_V_linaro_4_5_2011_02_0 + bool + prompt "linaro-4.5-2011.02-0 (EXPERIMENTAL)" + depends on EXPERIMENTAL + select CC_GCC_4_5_or_later + config CC_V_4_5_2 bool prompt "4.5.2 (EXPERIMENTAL)" @@ -37,6 +43,13 @@ depends on EXPERIMENTAL select CC_GCC_4_5_or_later + +config CC_V_linaro_4_4_2011_02_0 + bool + prompt "linaro-4.4-2011.02-0 (EXPERIMENTAL)" + depends on EXPERIMENTAL + select CC_GCC_4_4_or_later + config CC_V_4_4_5 bool prompt "4.4.5" @@ -216,9 +229,11 @@ string # Don't remove next line # CT_INSERT_VERSION_STRING_BELOW + default "linaro-4.5-2011.02-0" if CC_V_linaro_4_5_2011_02_0 default "4.5.2" if CC_V_4_5_2 default "4.5.1" if CC_V_4_5_1 default "4.5.0" if CC_V_4_5_0 + default "linaro-4.4-2011.02-0" if CC_V_linaro_4_4_2011_02_0 default "4.4.5" if CC_V_4_4_5 default "4.4.4" if CC_V_4_4_4 default "4.4.3" if CC_V_4_4_3 diff -r a3818c3b03e0 -r e85077497eb1 scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh Thu Feb 17 21:54:07 2011 +0100 +++ b/scripts/build/cc/gcc.sh Thu Feb 17 22:29:33 2011 +0100 @@ -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 @@ 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