libc: hide no-thread for those C libraries that do not support it
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Dec 12 22:18:52 2010 +0100 (2010-12-12)
changeset 2215bd86485d966a
parent 2214 10d4f2bc227b
child 2216 81b4c0efa46f
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>
config/libc.in
config/libc/newlib.in
config/libc/uClibc.in
     1.1 --- a/config/libc.in	Sun Dec 12 20:47:40 2010 +0100
     1.2 +++ b/config/libc.in	Sun Dec 12 22:18:52 2010 +0100
     1.3 @@ -40,6 +40,10 @@
     1.4      default n
     1.5      select LIBC_SUPPORT_THREADS_ANY
     1.6  
     1.7 +config LIBC_SUPPORT_THREADS_NONE
     1.8 +    bool
     1.9 +    default n
    1.10 +
    1.11  config THREADS
    1.12      string
    1.13      default "nptl"          if THREADS_NPTL
    1.14 @@ -78,6 +82,7 @@
    1.15  config THREADS_NONE
    1.16      bool
    1.17      prompt "none"
    1.18 +    depends on LIBC_SUPPORT_THREADS_NONE
    1.19  
    1.20  endchoice
    1.21  
     2.1 --- a/config/libc/newlib.in	Sun Dec 12 20:47:40 2010 +0100
     2.2 +++ b/config/libc/newlib.in	Sun Dec 12 22:18:52 2010 +0100
     2.3 @@ -2,6 +2,7 @@
     2.4  # depends on BARE_METAL
     2.5  
     2.6  config LIBC_newlib
     2.7 +    select LIBC_SUPPORT_THREADS_NONE
     2.8      help
     2.9        Newlib is a C library intended for use on embedded systems. It is a
    2.10        conglomeration of several library parts, all under free software
     3.1 --- a/config/libc/uClibc.in	Sun Dec 12 20:47:40 2010 +0100
     3.2 +++ b/config/libc/uClibc.in	Sun Dec 12 22:18:52 2010 +0100
     3.3 @@ -3,6 +3,7 @@
     3.4  
     3.5  config LIBC_uClibc
     3.6      select LIBC_SUPPORT_LINUXTHREADS
     3.7 +    select LIBC_SUPPORT_THREADS_NONE
     3.8      help
     3.9        The de-facto standard for embeded linux systems.
    3.10        Highly configurable, thus as feature-rich as you need, without