summaryrefslogtreecommitdiff
path: root/scripts/build/binutils
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/binutils
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/binutils')
-rw-r--r--scripts/build/binutils/binutils.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh
index 1cc8739..813d3ce 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