libc: hide no-thread for those C libraries that do not support it

Building non-threaded glibc has been unsupported for a long time, now:
  http://sourceware.org/ml/libc-alpha/2005-08/msg00091.html

As eglibc is a spin-off of glibc: ditto.

So do not offer that possibility in the menuconfig.
Thanks to Thomas Petazzoni for spotting, and helping to solve, the issue!

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
Yann E. MORIN" 2010-12-12 22:18:52 +01:00
parent a9966d1e1c
commit ccbfef2376
3 changed files with 7 additions and 0 deletions

View File

@ -40,6 +40,10 @@ config LIBC_SUPPORT_WIN32THREADS
default n default n
select LIBC_SUPPORT_THREADS_ANY select LIBC_SUPPORT_THREADS_ANY
config LIBC_SUPPORT_THREADS_NONE
bool
default n
config THREADS config THREADS
string string
default "nptl" if THREADS_NPTL default "nptl" if THREADS_NPTL
@ -78,6 +82,7 @@ config THREADS_WIN32THREADS
config THREADS_NONE config THREADS_NONE
bool bool
prompt "none" prompt "none"
depends on LIBC_SUPPORT_THREADS_NONE
endchoice endchoice

View File

@ -2,6 +2,7 @@
# depends on BARE_METAL # depends on BARE_METAL
config LIBC_newlib config LIBC_newlib
select LIBC_SUPPORT_THREADS_NONE
help help
Newlib is a C library intended for use on embedded systems. It is a Newlib is a C library intended for use on embedded systems. It is a
conglomeration of several library parts, all under free software conglomeration of several library parts, all under free software

View File

@ -3,6 +3,7 @@
config LIBC_uClibc config LIBC_uClibc
select LIBC_SUPPORT_LINUXTHREADS select LIBC_SUPPORT_LINUXTHREADS
select LIBC_SUPPORT_THREADS_NONE
help help
The de-facto standard for embeded linux systems. The de-facto standard for embeded linux systems.
Highly configurable, thus as feature-rich as you need, without Highly configurable, thus as feature-rich as you need, without