diff options
author | Cristoforo Cataldo <cristoforo.cataldo@gmail.com> | 2015-01-06 23:39:49 +0100 |
---|---|---|
committer | Cristoforo Cataldo <cristoforo.cataldo@gmail.com> | 2015-01-16 22:07:44 +0100 |
commit | 01397b7e5a3b0633c0a8cd9e75e9b84441b414a8 (patch) | |
tree | 925038a20daf04e4298509b2e7c862e03d1ea151 | |
parent | 315f69271ccacb1007ad16d9e641978d228b6d89 (diff) | |
download | crosstool-ng-01397b7e5a3b0633c0a8cd9e75e9b84441b414a8.tar.gz crosstool-ng-01397b7e5a3b0633c0a8cd9e75e9b84441b414a8.tar.bz2 crosstool-ng-01397b7e5a3b0633c0a8cd9e75e9b84441b414a8.zip |
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>
-rw-r--r-- | config/libc/newlib.in | 21 | ||||
-rw-r--r-- | scripts/build/libc/newlib.sh | 11 |
2 files changed, 26 insertions, 6 deletions
diff --git a/config/libc/newlib.in b/config/libc/newlib.in index fe21a701..8109354c 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 74785a62..9d42035e 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 |