diff options
author | Bryan Hundven <bryanhundven@gmail.com> | 2015-01-26 16:02:32 (GMT) |
---|---|---|
committer | Bryan Hundven <bryanhundven@gmail.com> | 2015-01-26 16:02:32 (GMT) |
commit | 0a6b755fea0385bc38d07cacc059258338b5be65 (patch) | |
tree | 97d3e802d87187bbae61c7c427a9303631dd8ace /scripts/build/libc/newlib.sh | |
parent | cf3fc4244ce0541c6fb671ff2004e83951be798d (diff) | |
parent | 42e6c434d7fb35860bb8e6a0303ffaf7d706d68d (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/newlib.sh')
-rw-r--r-- | scripts/build/libc/newlib.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh index 74785a6..9d42035 100644 --- a/scripts/build/libc/newlib.sh +++ b/scripts/build/libc/newlib.sh @@ -16,8 +16,15 @@ do_libc_get() { CT_GetCustom "newlib" "${CT_LIBC_VERSION}" \ "${CT_LIBC_NEWLIB_CUSTOM_LOCATION}" else # ! custom location - CT_GetFile "newlib-${CT_LIBC_VERSION}" ${libc_src} \ - http://mirrors.kernel.org/sources.redhat.com/newlib + if echo ${CT_LIBC_VERSION} |grep -q linaro; then + YYMM=`echo ${CT_LIBC_VERSION} |cut -d- -f3 |${sed} -e 's,^..,,'` + CT_GetFile "newlib-${CT_LIBC_VERSION}" ${libc_src} \ + https://releases.linaro.org/${YYMM}/components/toolchain/newlib-linaro \ + http://cbuild.validation.linaro.org/snapshots + else + CT_GetFile "newlib-${CT_LIBC_VERSION}" ${libc_src} \ + http://mirrors.kernel.org/sources.redhat.com/newlib + fi fi # ! custom location if [ "${CT_ATMEL_AVR32_HEADERS}" = "y" ]; then |