libc: newlib: Add NewLib 2.2.0, Linaro NewLib 2.2.0-2015.01 and 2.1.0-2014.09

This commit allows to choose, download and build latest NewLib:
- newlib-2.2.0
- newlib-linaro-2.2.0-2015.01
- newlib-linaro-2.1.0-2014.09

Signed-off-by: Cristoforo Cataldo <cristoforo.cataldo@gmail.com>
This commit is contained in:
Cristoforo Cataldo 2015-01-06 23:39:49 +01:00
parent 315f69271c
commit 01397b7e5a
2 changed files with 26 additions and 6 deletions

View File

@ -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

View File

@ -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