summaryrefslogtreecommitdiff
path: root/config/libc
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-02-07 22:30:44 (GMT)
committerAlexey Neyman <stilor@att.net>2017-02-10 02:05:36 (GMT)
commitfb6fe0d70baaf4a3b545aa56b7b25a8457ab1204 (patch)
tree7caf9074008ee6af9bed6b3361ef42567cf632ad /config/libc
parentf6ef2be9f3d70cdd37775be6063b17ccec9f7283 (diff)
Revert "glibc: Clean out old glibc versions"
This partially reverts commit 88e8852ccd94a60979971454f8b49cb1d06cd907. Bring back releases 2.12 and newer of glibc, along with the associated Kconfig machinery. Simplify it slightly.
Diffstat (limited to 'config/libc')
-rw-r--r--config/libc/glibc.in56
-rw-r--r--config/libc/glibc.in.237
2 files changed, 66 insertions, 27 deletions
diff --git a/config/libc/glibc.in b/config/libc/glibc.in
index 767cbbf..7910230 100644
--- a/config/libc/glibc.in
+++ b/config/libc/glibc.in
@@ -115,11 +115,54 @@ config LIBC_GLIBC_V_2_19
bool
prompt "2.19 (OBSOLETE)"
depends on OBSOLETE
+ select LIBC_GLIBC_2_17_or_later
config LIBC_GLIBC_V_2_18
bool
prompt "2.18 (OBSOLETE)"
depends on OBSOLETE
+ select LIBC_GLIBC_2_17_or_later
+
+config LIBC_GLIBC_V_2_17
+ bool
+ prompt "2.17 (OBSOLETE)"
+ depends on OBSOLETE
+ select LIBC_GLIBC_2_17_or_later
+
+config LIBC_GLIBC_V_2_16_0
+ bool
+ prompt "2.16.0 (OBSOLETE)"
+ depends on OBSOLETE
+
+config LIBC_GLIBC_V_2_15
+ bool
+ prompt "2.15 (OBSOLETE)"
+ depends on OBSOLETE
+
+config LIBC_GLIBC_V_2_14_1
+ bool
+ prompt "2.14.1 (OBSOLETE)"
+ depends on OBSOLETE
+
+config LIBC_GLIBC_V_2_14
+ bool
+ prompt "2.14 (OBSOLETE)"
+ depends on OBSOLETE
+
+config LIBC_GLIBC_V_2_13
+ bool
+ prompt "2.13 (OBSOLETE)"
+ depends on OBSOLETE
+
+config LIBC_GLIBC_V_2_12_2
+ bool
+ prompt "2.12.2 (OBSOLETE)"
+ depends on OBSOLETE
+
+config LIBC_GLIBC_V_2_12_1
+ bool
+ prompt "2.12.1 (OBSOLETE)"
+ depends on OBSOLETE
endchoice
@@ -134,6 +177,11 @@ config LIBC_GLIBC_2_23_or_later
# It is no longer possible to build glibc without pthread!
config LIBC_GLIBC_2_20_or_later
bool
+ select LIBC_GLIBC_2_17_or_later
+
+# DeMark no more ports
+config LIBC_GLIBC_2_17_or_later
+ bool
if ! LIBC_GLIBC_CUSTOM
@@ -150,5 +198,13 @@ config LIBC_VERSION
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
+ default "2.17" if LIBC_GLIBC_V_2_17
+ default "2.16.0" if LIBC_GLIBC_V_2_16_0
+ default "2.15" if LIBC_GLIBC_V_2_15
+ default "2.14.1" if LIBC_GLIBC_V_2_14_1
+ default "2.14" if LIBC_GLIBC_V_2_14
+ default "2.13" if LIBC_GLIBC_V_2_13
+ default "2.12.2" if LIBC_GLIBC_V_2_12_2
+ default "2.12.1" if LIBC_GLIBC_V_2_12_1
endif # ! LIBC_GLIBC_CUSTOM
diff --git a/config/libc/glibc.in.2 b/config/libc/glibc.in.2
index 104552a..c1ef5bb 100644
--- a/config/libc/glibc.in.2
+++ b/config/libc/glibc.in.2
@@ -5,15 +5,16 @@
# This list must be carefully in sync with the architectures names
# we can find in config/arch/*
+# Ports were integrated into the main tarball in 2.17
config LIBC_GLIBC_PORTS_EXTERNAL
bool
- default n
+ default y
+ depends on !LIBC_GLIBC_2_17_or_later
-config LIBC_GLIBC_MAY_FORCE_PORTS
+# Ports are no longer an add-on starting with 2.20
+config LIBC_GLIBC_USE_PORTS
bool
- default y if ARCH_arm
- default y if ARCH_mips
- select LIBC_GLIBC_USE_PORTS
+ default y if ARCH_alpha || ARCH_arm || ARCH_m68k || ARCH_mips || ARCH_powerpc
depends on !LIBC_GLIBC_2_20_or_later
# Force using the BFD linker during the toolchain build
@@ -109,19 +110,6 @@ config LIBC_GLIBC_FORCE_UNWIND
of glibc on some architectures
(seen on s390, s390x and x86_64).
-config LIBC_GLIBC_USE_PORTS
- bool
- prompt "Use the ports addon"
- depends on !LIBC_GLIBC_2_20_or_later
- help
- The ports addon contains some architecture ports that are not available
- in the official distribution.
-
- For example, this is the case for ARM with glibc-2.4 and above.
-
- Say n only if you're sure that your architecture is in the official
- distribution for your chosen version.
-
config LIBC_ADDONS_LIST
string
prompt "Extra addons"
@@ -131,17 +119,12 @@ config LIBC_ADDONS_LIST
You need to specify neither linuxthreads nor nptl, as they are added
automagically for you depending on the threading model you chose
- earlier.
+ earlier and on libc version selected.
- Eg.: crypt (for very old libces)
+ Also, do not specify ports even if applicable to the selected libc
+ version/architecture; it is selected automatically.
-if LIBC_GLIBC_USE_PORTS || ( LIBC_ADDONS_LIST != "" )
-comment "WARNING !!! "
-comment "| For glibc >= 2.8, it can happen that the tarballs "
-comment "| for the addons are not available for download. "
-comment "| If that happens, bad luck... Try a previous version "
-comment "| or try again later... :-( "
-endif
+ Eg.: libidn
config LIBC_LOCALES
bool