cc/gcc: add versions from Linaro

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
Yann E. MORIN" 2011-02-17 22:29:33 +01:00
parent 1339801661
commit 83a004e2c4
2 changed files with 30 additions and 1 deletions

View File

@ -19,6 +19,12 @@ choice
# 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 @@ config CC_V_4_5_0
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 @@ config CC_VERSION
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

View File

@ -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