From ca5003cbe65263d205155d74dfe3ece34b13e113 Mon Sep 17 00:00:00 2001 From: Cristoforo Cataldo Date: Tue, 6 Jan 2015 23:15:05 +0100 Subject: 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 diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in index f21cbca..9800004 100644 --- a/config/binutils/binutils.in +++ b/config/binutils/binutils.in @@ -8,11 +8,21 @@ choice # Don't remove next line # CT_INSERT_VERSION_BELOW +config BINUTILS_LINARO_V_2_25 + bool + prompt "linaro-2.25.0-2015.01-2" + select BINUTILS_2_25_or_later + config BINUTILS_V_2_25 bool prompt "2.25" select BINUTILS_2_25_or_later +config BINUTILS_LINARO_V_2_24 + bool + prompt "linaro-2.24.0-2014.11-2" + select BINUTILS_2_24_or_later + config BINUTILS_V_2_24 bool prompt "2.24" @@ -82,7 +92,9 @@ config BINUTILS_VERSION string # Don't remove next line # CT_INSERT_VERSION_STRING_BELOW + default "linaro-2.25.0-2015.01-2" if BINUTILS_LINARO_V_2_25 default "2.25" if BINUTILS_V_2_25 + default "linaro-2.24.0-2014.11-2" if BINUTILS_LINARO_V_2_24 default "2.24" if BINUTILS_V_2_24 default "2.23.2" if BINUTILS_V_2_23_2 default "2.23.1" if BINUTILS_V_2_23_1 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 -- cgit v0.10.2-6-g49f6