summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristoforo Cataldo <cristoforo.cataldo@gmail.com>2015-01-06 22:35:33 (GMT)
committerCristoforo Cataldo <cristoforo.cataldo@gmail.com>2015-01-16 21:07:44 (GMT)
commit315f69271ccacb1007ad16d9e641978d228b6d89 (patch)
tree57b13ef95b9684ed030cf8989a0c974d3319a1c1
parent4170d1ed701bff148f1a274fdc69a8ed1275941e (diff)
libc: glibc: Add Linaro GLibc 2.20-2014.11
This commit allows to choose, download and build latest Linaro GLibC: - glibc-linaro-2.20-2014.11 Signed-off-by: Cristoforo Cataldo <cristoforo.cataldo@gmail.com>
-rw-r--r--config/libc/glibc.in6
-rw-r--r--scripts/build/libc/glibc.sh14
2 files changed, 17 insertions, 3 deletions
diff --git a/config/libc/glibc.in b/config/libc/glibc.in
index f107438..42575f7 100644
--- a/config/libc/glibc.in
+++ b/config/libc/glibc.in
@@ -17,6 +17,11 @@ choice
# Don't remove next line
# CT_INSERT_VERSION_BELOW
+config LIBC_GLIBC_LINARO_V_2_20
+ bool
+ prompt "Linaro 2.20-2014.11"
+ select LIBC_GLIBC_2_20_or_later
+
config LIBC_GLIBC_V_2_20
bool
prompt "2.20"
@@ -126,6 +131,7 @@ config LIBC_VERSION
string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
+ default "linaro-2.20-2014.11" if LIBC_GLIBC_LINARO_V_2_20
default "2.20" if LIBC_GLIBC_V_2_20
default "2.19" if LIBC_GLIBC_V_2_19
default "2.18" if LIBC_GLIBC_V_2_18
diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh
index 8093d94..971d326 100644
--- a/scripts/build/libc/glibc.sh
+++ b/scripts/build/libc/glibc.sh
@@ -23,9 +23,17 @@ do_libc_get() {
CT_GetCustom "glibc" "${CT_LIBC_VERSION}" "${CT_LIBC_GLIBC_CUSTOM_LOCATION}"
CT_LIBC_CUSTOM_LOCATION="${CT_SRC_DIR}/glibc-${CT_LIBC_VERSION}"
else
- CT_GetFile "glibc-${CT_LIBC_VERSION}" \
- {http,ftp,https}://ftp.gnu.org/gnu/glibc \
- ftp://{sourceware.org,gcc.gnu.org}/pub/glibc/{releases,snapshots}
+ if echo ${CT_LIBC_VERSION} |grep -q linaro; then
+ # Linaro eglibc releases come from regular downloads...
+ YYMM=`echo ${CT_LIBC_VERSION} |cut -d- -f3 |${sed} -e 's,^..,,'`
+ CT_GetFile "glibc-${CT_LIBC_VERSION}" \
+ https://releases.linaro.org/${YYMM}/components/toolchain/glibc-linaro \
+ http://cbuild.validation.linaro.org/snapshots
+ else
+ CT_GetFile "glibc-${CT_LIBC_VERSION}" \
+ {http,ftp,https}://ftp.gnu.org/gnu/glibc \
+ ftp://{sourceware.org,gcc.gnu.org}/pub/glibc/{releases,snapshots}
+ fi
fi
# C library addons