summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/libc/newlib.in21
-rw-r--r--scripts/build/libc/newlib.sh11
2 files changed, 26 insertions, 6 deletions
diff --git a/config/libc/newlib.in b/config/libc/newlib.in
index fe21a70..8109354 100644
--- a/config/libc/newlib.in
+++ b/config/libc/newlib.in
@@ -19,15 +19,25 @@ choice
# Don't remove next line
# CT_INSERT_VERSION_BELOW
+config LIBC_NEWLIB_LINARO_V_2_2_0
+ bool
+ prompt "Linaro 2.2.0-2015.01"
+
+config LIBC_NEWLIB_V_2_2_0
+ bool
+ prompt "2.2.0"
+
+config LIBC_NEWLIB_LINARO_V_2_1_0
+ bool
+ prompt "Linaro 2.1.0-2014.09"
+
config LIBC_NEWLIB_V_2_1_0
bool
- prompt "2.1.0 (EXPERIMENTAL)"
- depends on EXPERIMENTAL
+ prompt "2.1.0"
config LIBC_NEWLIB_V_2_0_0
bool
- prompt "2.0.0 (EXPERIMENTAL)"
- depends on EXPERIMENTAL
+ prompt "2.0.0"
config LIBC_NEWLIB_V_1_20_0
bool
@@ -68,6 +78,9 @@ config LIBC_VERSION
string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
+ default "linaro-2.2.0-2015.01" if LIBC_NEWLIB_LINARO_V_2_2_0
+ default "2.2.0" if LIBC_NEWLIB_V_2_2_0
+ default "linaro-2.1.0-2014.09" if LIBC_NEWLIB_LINARO_V_2_1_0
default "2.1.0" if LIBC_NEWLIB_V_2_1_0
default "2.0.0" if LIBC_NEWLIB_V_2_0_0
default "1.20.0" if LIBC_NEWLIB_V_1_20_0
diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh
index 74785a6..9d42035 100644
--- a/scripts/build/libc/newlib.sh
+++ b/scripts/build/libc/newlib.sh
@@ -16,8 +16,15 @@ do_libc_get() {
CT_GetCustom "newlib" "${CT_LIBC_VERSION}" \
"${CT_LIBC_NEWLIB_CUSTOM_LOCATION}"
else # ! custom location
- CT_GetFile "newlib-${CT_LIBC_VERSION}" ${libc_src} \
- http://mirrors.kernel.org/sources.redhat.com/newlib
+ if echo ${CT_LIBC_VERSION} |grep -q linaro; then
+ YYMM=`echo ${CT_LIBC_VERSION} |cut -d- -f3 |${sed} -e 's,^..,,'`
+ CT_GetFile "newlib-${CT_LIBC_VERSION}" ${libc_src} \
+ https://releases.linaro.org/${YYMM}/components/toolchain/newlib-linaro \
+ http://cbuild.validation.linaro.org/snapshots
+ else
+ CT_GetFile "newlib-${CT_LIBC_VERSION}" ${libc_src} \
+ http://mirrors.kernel.org/sources.redhat.com/newlib
+ fi
fi # ! custom location
if [ "${CT_ATMEL_AVR32_HEADERS}" = "y" ]; then