cc/gcc: add versions from Linaro
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Feb 17 22:29:33 2011 +0100 (2011-02-17)
changeset 2302e85077497eb1
parent 2301 a3818c3b03e0
child 2303 88871c8621b8
cc/gcc: add versions from Linaro

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
config/cc/gcc.in
scripts/build/cc/gcc.sh
     1.1 --- a/config/cc/gcc.in	Thu Feb 17 21:54:07 2011 +0100
     1.2 +++ b/config/cc/gcc.in	Thu Feb 17 22:29:33 2011 +0100
     1.3 @@ -19,6 +19,12 @@
     1.4  # Don't remove next line
     1.5  # CT_INSERT_VERSION_BELOW
     1.6  
     1.7 +config CC_V_linaro_4_5_2011_02_0
     1.8 +    bool
     1.9 +    prompt "linaro-4.5-2011.02-0 (EXPERIMENTAL)"
    1.10 +    depends on EXPERIMENTAL
    1.11 +    select CC_GCC_4_5_or_later
    1.12 +
    1.13  config CC_V_4_5_2
    1.14      bool
    1.15      prompt "4.5.2 (EXPERIMENTAL)"
    1.16 @@ -37,6 +43,13 @@
    1.17      depends on EXPERIMENTAL
    1.18      select CC_GCC_4_5_or_later
    1.19  
    1.20 +
    1.21 +config CC_V_linaro_4_4_2011_02_0
    1.22 +    bool
    1.23 +    prompt "linaro-4.4-2011.02-0 (EXPERIMENTAL)"
    1.24 +    depends on EXPERIMENTAL
    1.25 +    select CC_GCC_4_4_or_later
    1.26 +
    1.27  config CC_V_4_4_5
    1.28      bool
    1.29      prompt "4.4.5"
    1.30 @@ -216,9 +229,11 @@
    1.31      string
    1.32  # Don't remove next line
    1.33  # CT_INSERT_VERSION_STRING_BELOW
    1.34 +    default "linaro-4.5-2011.02-0" if CC_V_linaro_4_5_2011_02_0
    1.35      default "4.5.2" if CC_V_4_5_2
    1.36      default "4.5.1" if CC_V_4_5_1
    1.37      default "4.5.0" if CC_V_4_5_0
    1.38 +    default "linaro-4.4-2011.02-0" if CC_V_linaro_4_4_2011_02_0
    1.39      default "4.4.5" if CC_V_4_4_5
    1.40      default "4.4.4" if CC_V_4_4_4
    1.41      default "4.4.3" if CC_V_4_4_3
     2.1 --- a/scripts/build/cc/gcc.sh	Thu Feb 17 21:54:07 2011 +0100
     2.2 +++ b/scripts/build/cc/gcc.sh	Thu Feb 17 22:29:33 2011 +0100
     2.3 @@ -4,6 +4,19 @@
     2.4  
     2.5  # Download gcc
     2.6  do_cc_get() {
     2.7 +    local linaro_version
     2.8 +    local linaro_series
     2.9 +    local linaro_base_url="http://launchpad.net/gcc-linaro"
    2.10 +
    2.11 +
    2.12 +    # Account for the Linaro versioning
    2.13 +    linaro_version="$( echo "${CT_CC_VERSION}"      \
    2.14 +                       |sed -r -e 's/^linaro-//;'   \
    2.15 +                     )"
    2.16 +    linaro_series="$( echo "${linaro_version}"      \
    2.17 +                      |sed -r -e 's/-.*//;'         \
    2.18 +                    )"
    2.19 +
    2.20      # Ah! gcc folks are kind of 'different': they store the tarballs in
    2.21      # subdirectories of the same name! That's because gcc is such /crap/ that
    2.22      # it is such /big/ that it needs being splitted for distribution! Sad. :-(
    2.23 @@ -13,7 +26,8 @@
    2.24      CT_GetFile "gcc-${CT_CC_VERSION}"                                                       \
    2.25                 {ftp,http}://ftp.gnu.org/gnu/gcc{,{,/releases}/gcc-${CT_CC_VERSION}}         \
    2.26                 ftp://ftp.irisa.fr/pub/mirrors/gcc.gnu.org/gcc/releases/gcc-${CT_CC_VERSION} \
    2.27 -               ftp://ftp.uvsq.fr/pub/gcc/snapshots/${CT_CC_VERSION}
    2.28 +               ftp://ftp.uvsq.fr/pub/gcc/snapshots/${CT_CC_VERSION}                         \
    2.29 +               "${linaro_base_url}/${linaro_series}/${linaro_version}/+download"
    2.30  
    2.31      # Starting with GCC 4.3, ecj is used for Java, and will only be
    2.32      # built if the configure script finds ecj.jar at the top of the