diff options
Diffstat (limited to 'scripts/build/libc')
-rw-r--r-- | scripts/build/libc/eglibc.sh | 9 | ||||
-rw-r--r-- | scripts/build/libc/glibc.sh | 14 | ||||
-rw-r--r-- | scripts/build/libc/newlib.sh | 11 |
3 files changed, 29 insertions, 5 deletions
diff --git a/scripts/build/libc/eglibc.sh b/scripts/build/libc/eglibc.sh index 1f1095fa..704ef7c8 100644 --- a/scripts/build/libc/eglibc.sh +++ b/scripts/build/libc/eglibc.sh @@ -16,6 +16,15 @@ do_libc_get() { local -a extra_addons local svn_base + 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 "eglibc-${CT_LIBC_VERSION}" \ + https://releases.linaro.org/${YYMM}/components/toolchain/eglibc-linaro \ + http://cbuild.validation.linaro.org/snapshots + return + fi + if [ "${CT_EGLIBC_HTTP}" = "y" ]; then svn_base="http://www.eglibc.org/svn" else 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 diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh index 74785a62..9d42035e 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 |