diff options
author | Cristoforo Cataldo <cristoforo.cataldo@gmail.com> | 2015-01-06 23:15:05 +0100 |
---|---|---|
committer | Cristoforo Cataldo <cristoforo.cataldo@gmail.com> | 2015-01-16 21:52:25 +0100 |
commit | ca5003cbe65263d205155d74dfe3ece34b13e113 (patch) | |
tree | c779c1f1ceec5e28ab521220abb2f11379a54a11 /scripts | |
parent | 7c7b882c8fb6a8d302db9ba4984b2417aae03cfe (diff) | |
download | crosstool-ng-ca5003cbe65263d205155d74dfe3ece34b13e113.tar.gz crosstool-ng-ca5003cbe65263d205155d74dfe3ece34b13e113.tar.bz2 crosstool-ng-ca5003cbe65263d205155d74dfe3ece34b13e113.zip |
binutils: Add Linaro Binutils 2.25-2015.01 and 2.24-2014.11
This commit allows to choose, download and build latest Linaro Binutils:
- binutils-linaro-2.25.0-2015.01-2
- binutils-linaro-2.24.0-2014.11-2
Signed-off-by: Cristoforo Cataldo <cristoforo.cataldo@gmail.com>
Diffstat (limited to 'scripts')
-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 |