diff options
author | Cristoforo Cataldo <cristoforo.cataldo@gmail.com> | 2015-01-06 23:35:33 +0100 |
---|---|---|
committer | Cristoforo Cataldo <cristoforo.cataldo@gmail.com> | 2015-01-16 22:07:44 +0100 |
commit | 315f69271ccacb1007ad16d9e641978d228b6d89 (patch) | |
tree | 57b13ef95b9684ed030cf8989a0c974d3319a1c1 | |
parent | 4170d1ed701bff148f1a274fdc69a8ed1275941e (diff) | |
download | crosstool-ng-315f69271ccacb1007ad16d9e641978d228b6d89.tar.gz crosstool-ng-315f69271ccacb1007ad16d9e641978d228b6d89.tar.bz2 crosstool-ng-315f69271ccacb1007ad16d9e641978d228b6d89.zip |
libc: glibc: Add Linaro GLibc 2.20-2014.11
This commit allows to choose, download and build latest Linaro GLibC:
- glibc-linaro-2.20-2014.11
Signed-off-by: Cristoforo Cataldo <cristoforo.cataldo@gmail.com>
-rw-r--r-- | config/libc/glibc.in | 6 | ||||
-rw-r--r-- | scripts/build/libc/glibc.sh | 14 |
2 files changed, 17 insertions, 3 deletions
diff --git a/config/libc/glibc.in b/config/libc/glibc.in index f107438f..42575f72 100644 --- a/config/libc/glibc.in +++ b/config/libc/glibc.in @@ -17,6 +17,11 @@ choice # Don't remove next line # CT_INSERT_VERSION_BELOW +config LIBC_GLIBC_LINARO_V_2_20 + bool + prompt "Linaro 2.20-2014.11" + select LIBC_GLIBC_2_20_or_later + config LIBC_GLIBC_V_2_20 bool prompt "2.20" @@ -126,6 +131,7 @@ config LIBC_VERSION string # Don't remove next line # CT_INSERT_VERSION_STRING_BELOW + default "linaro-2.20-2014.11" if LIBC_GLIBC_LINARO_V_2_20 default "2.20" if LIBC_GLIBC_V_2_20 default "2.19" if LIBC_GLIBC_V_2_19 default "2.18" if LIBC_GLIBC_V_2_18 diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh index 8093d94c..971d3260 100644 --- a/scripts/build/libc/glibc.sh +++ b/scripts/build/libc/glibc.sh @@ -23,9 +23,17 @@ do_libc_get() { CT_GetCustom "glibc" "${CT_LIBC_VERSION}" "${CT_LIBC_GLIBC_CUSTOM_LOCATION}" CT_LIBC_CUSTOM_LOCATION="${CT_SRC_DIR}/glibc-${CT_LIBC_VERSION}" else - CT_GetFile "glibc-${CT_LIBC_VERSION}" \ - {http,ftp,https}://ftp.gnu.org/gnu/glibc \ - ftp://{sourceware.org,gcc.gnu.org}/pub/glibc/{releases,snapshots} + if echo ${CT_LIBC_VERSION} |grep -q linaro; then + # Linaro eglibc releases come from regular downloads... + YYMM=`echo ${CT_LIBC_VERSION} |cut -d- -f3 |${sed} -e 's,^..,,'` + CT_GetFile "glibc-${CT_LIBC_VERSION}" \ + https://releases.linaro.org/${YYMM}/components/toolchain/glibc-linaro \ + http://cbuild.validation.linaro.org/snapshots + else + CT_GetFile "glibc-${CT_LIBC_VERSION}" \ + {http,ftp,https}://ftp.gnu.org/gnu/glibc \ + ftp://{sourceware.org,gcc.gnu.org}/pub/glibc/{releases,snapshots} + fi fi # C library addons |