mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-11 15:33:09 +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
|
# Don't remove next line
|
||||||
# CT_INSERT_VERSION_BELOW
|
# 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
|
config LIBC_NEWLIB_V_2_1_0
|
||||||
bool
|
bool
|
||||||
prompt "2.1.0 (EXPERIMENTAL)"
|
prompt "2.1.0"
|
||||||
depends on EXPERIMENTAL
|
|
||||||
|
|
||||||
config LIBC_NEWLIB_V_2_0_0
|
config LIBC_NEWLIB_V_2_0_0
|
||||||
bool
|
bool
|
||||||
prompt "2.0.0 (EXPERIMENTAL)"
|
prompt "2.0.0"
|
||||||
depends on EXPERIMENTAL
|
|
||||||
|
|
||||||
config LIBC_NEWLIB_V_1_20_0
|
config LIBC_NEWLIB_V_1_20_0
|
||||||
bool
|
bool
|
||||||
@ -68,6 +78,9 @@ config LIBC_VERSION
|
|||||||
string
|
string
|
||||||
# Don't remove next line
|
# Don't remove next line
|
||||||
# CT_INSERT_VERSION_STRING_BELOW
|
# 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.1.0" if LIBC_NEWLIB_V_2_1_0
|
||||||
default "2.0.0" if LIBC_NEWLIB_V_2_0_0
|
default "2.0.0" if LIBC_NEWLIB_V_2_0_0
|
||||||
default "1.20.0" if LIBC_NEWLIB_V_1_20_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_GetCustom "newlib" "${CT_LIBC_VERSION}" \
|
||||||
"${CT_LIBC_NEWLIB_CUSTOM_LOCATION}"
|
"${CT_LIBC_NEWLIB_CUSTOM_LOCATION}"
|
||||||
else # ! custom location
|
else # ! custom location
|
||||||
CT_GetFile "newlib-${CT_LIBC_VERSION}" ${libc_src} \
|
if echo ${CT_LIBC_VERSION} |grep -q linaro; then
|
||||||
http://mirrors.kernel.org/sources.redhat.com/newlib
|
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
|
fi # ! custom location
|
||||||
|
|
||||||
if [ "${CT_ATMEL_AVR32_HEADERS}" = "y" ]; then
|
if [ "${CT_ATMEL_AVR32_HEADERS}" = "y" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user