mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-23 14:42:26 +00:00
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:
parent
315f69271c
commit
01397b7e5a
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user