diff options
author | Bryan Hundven <bryanhundven@gmail.com> | 2015-01-26 08:02:32 -0800 |
---|---|---|
committer | Bryan Hundven <bryanhundven@gmail.com> | 2015-01-26 08:02:32 -0800 |
commit | 0a6b755fea0385bc38d07cacc059258338b5be65 (patch) | |
tree | 97d3e802d87187bbae61c7c427a9303631dd8ace /scripts/build/binutils/binutils.sh | |
parent | cf3fc4244ce0541c6fb671ff2004e83951be798d (diff) | |
parent | 42e6c434d7fb35860bb8e6a0303ffaf7d706d68d (diff) | |
download | crosstool-ng-0a6b755fea0385bc38d07cacc059258338b5be65.tar.gz crosstool-ng-0a6b755fea0385bc38d07cacc059258338b5be65.tar.bz2 crosstool-ng-0a6b755fea0385bc38d07cacc059258338b5be65.zip |
Merge pull request #24 from Christopher83/master
Add the support to choose, download and build latest Linaro toolchain components
Diffstat (limited to 'scripts/build/binutils/binutils.sh')
-rw-r--r-- | scripts/build/binutils/binutils.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh index 1cc8739e..813d3ceb 100644 --- a/scripts/build/binutils/binutils.sh +++ b/scripts/build/binutils/binutils.sh @@ -8,9 +8,16 @@ do_binutils_get() { CT_GetCustom "binutils" "${CT_BINUTILS_VERSION}" \ "${CT_BINUTILS_CUSTOM_LOCATION}" else - CT_GetFile "binutils-${CT_BINUTILS_VERSION}" \ - ftp://{sourceware.org,gcc.gnu.org}/pub/binutils/{releases,snapshots} \ - {ftp,http}://{ftp.gnu.org/gnu,ftp.kernel.org/pub/linux/devel}/binutils + if echo ${CT_BINUTILS_VERSION} |grep -q linaro; then + YYMM=`echo ${CT_BINUTILS_VERSION} |cut -d- -f3 |${sed} -e 's,^..,,'` + CT_GetFile "binutils-${CT_BINUTILS_VERSION}" \ + https://releases.linaro.org/${YYMM}/components/toolchain/binutils-linaro \ + http://cbuild.validation.linaro.org/snapshots + else + CT_GetFile "binutils-${CT_BINUTILS_VERSION}" \ + ftp://{sourceware.org,gcc.gnu.org}/pub/binutils/{releases,snapshots} \ + {ftp,http}://{ftp.gnu.org/gnu,ftp.kernel.org/pub/linux/devel}/binutils + fi fi if [ -n "${CT_ARCH_BINFMT_FLAT}" ]; then |