diff options
author | Alexey Neyman <stilor@att.net> | 2017-01-11 22:20:46 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-01-12 23:00:41 -0800 |
commit | 9f5a92a783eb33430a3c8e5518e7e1c723fe3a15 (patch) | |
tree | bc4abff0bedeb7155996c89a41656fd406823149 /scripts/build/binutils | |
parent | 5e0f715ea7d032207d20593e43b02c1a1d7cd759 (diff) | |
download | crosstool-ng-9f5a92a783eb33430a3c8e5518e7e1c723fe3a15.tar.gz crosstool-ng-9f5a92a783eb33430a3c8e5518e7e1c723fe3a15.tar.bz2 crosstool-ng-9f5a92a783eb33430a3c8e5518e7e1c723fe3a15.zip |
Unify fetching Linaro components.
Add CT_GetLinaro, use it from gcc/binutils/gdb/glibc/newlib.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/binutils')
-rw-r--r-- | scripts/build/binutils/binutils.sh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh index 0e285b61..17ea1389 100644 --- a/scripts/build/binutils/binutils.sh +++ b/scripts/build/binutils/binutils.sh @@ -8,16 +8,16 @@ do_binutils_get() { CT_GetCustom "binutils" "${CT_BINUTILS_CUSTOM_VERSION}" \ "${CT_BINUTILS_CUSTOM_LOCATION}" else - 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}" \ - {http,ftp}://{ftp.gnu.org/gnu,ftp.kernel.org/pub/linux/devel}/binutils \ - ftp://{sourceware.org,gcc.gnu.org}/pub/binutils/{releases,snapshots} - fi + case "${CT_BINUTILS_VERSION}" in + linaro-*) + CT_GetLinaro "binutils" "${CT_BINUTILS_VERSION}" + ;; + *) + CT_GetFile "binutils-${CT_BINUTILS_VERSION}" \ + {http,ftp}://{ftp.gnu.org/gnu,ftp.kernel.org/pub/linux/devel}/binutils \ + ftp://{sourceware.org,gcc.gnu.org}/pub/binutils/{releases,snapshots} + ;; + esac fi if [ -n "${CT_ARCH_BINFMT_FLAT}" ]; then |