summaryrefslogtreecommitdiff
path: root/scripts/build/libc/glibc.sh
diff options
context:
space:
mode:
authorBryan Hundven <bryanhundven@gmail.com>2015-01-26 16:02:32 (GMT)
committerBryan Hundven <bryanhundven@gmail.com>2015-01-26 16:02:32 (GMT)
commit0a6b755fea0385bc38d07cacc059258338b5be65 (patch)
tree97d3e802d87187bbae61c7c427a9303631dd8ace /scripts/build/libc/glibc.sh
parentcf3fc4244ce0541c6fb671ff2004e83951be798d (diff)
parent42e6c434d7fb35860bb8e6a0303ffaf7d706d68d (diff)
Merge pull request #24 from Christopher83/master
Add the support to choose, download and build latest Linaro toolchain components
Diffstat (limited to 'scripts/build/libc/glibc.sh')
-rw-r--r--scripts/build/libc/glibc.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh
index 8093d94..971d326 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