scripts/addToolVersion.sh
changeset 2489 b7c9f410704f
parent 2488 58a28561f1bc
child 2666 d7d4c6336f8f
     1.1 --- a/scripts/addToolVersion.sh	Tue May 31 20:39:42 2011 +0200
     1.2 +++ b/scripts/addToolVersion.sh	Tue May 31 20:55:30 2011 +0200
     1.3 @@ -137,6 +137,22 @@
     1.4                  SedExpr1="${SedExpr1}\n    select BINUTILS_2_18_or_later"
     1.5              fi
     1.6              ;;
     1.7 +        eglibc)
     1.8 +            # Extract 'M'ajor and 'm'inor from version string
     1.9 +            ver_M=$(getVersionField "${version}" . 1)
    1.10 +            ver_m=$(getVersionField "${version}" . 2)
    1.11 +            if [   \( ${ver_M} -eq 2 -a ${ver_m} -eq 13 \)  ]; then
    1.12 +                SedExpr1="${SedExpr1}\n    select LIBC_EGLIBC_2_13_or_later"
    1.13 +            elif [ \( ${ver_M} -eq 2 -a ${ver_m} -eq 12 \)  ]; then
    1.14 +                SedExpr1="${SedExpr1}\n    select LIBC_EGLIBC_2_12_or_later"
    1.15 +            elif [ \( ${ver_M} -eq 2 -a ${ver_m} -eq 11 \)  ]; then
    1.16 +                SedExpr1="${SedExpr1}\n    select LIBC_EGLIBC_2_11_or_later"
    1.17 +            elif [ \( ${ver_M} -eq 2 -a ${ver_m} -eq 10 \)  ]; then
    1.18 +                SedExpr1="${SedExpr1}\n    select LIBC_EGLIBC_2_10_or_later"
    1.19 +            elif [ \( ${ver_M} -eq 2 -a ${ver_m} -eq 9 \)  ]; then
    1.20 +                SedExpr1="${SedExpr1}\n    select LIBC_EGLIBC_2_9_or_later"
    1.21 +            fi
    1.22 +            ;;
    1.23          uClibc)
    1.24              # uClibc-0.9.30 and above need some love
    1.25              ver_M=$(getVersionField "${version}" . 1)