Move the threading model choice back to the C library menu:

- the threading models available are dependent on the C library used
 - it is thus easier to first select the C libary, and then the threading model, rather going back to the toolchain menu.

 /trunk/config/toolchain.in |   29     0    29     0 -----------------------------
 /trunk/config/libc.in      |   47    38     9     0 ++++++++++++++++++++++++++++++++++++++---------
 2 files changed, 38 insertions(+), 38 deletions(-)
This commit is contained in:
Yann E. MORIN" 2008-08-21 09:48:00 +00:00
parent 535c532baf
commit 30481d01ce
2 changed files with 38 additions and 38 deletions

View File

@ -13,6 +13,10 @@ config LIBC_GLIBC
select LIBC_SUPPORT_NPTL
select LIBC_SUPPORT_LINUXTHREADS
if LIBC_GLIBC
source config/libc/glibc.in
endif
config LIBC_EGLIBC
bool
prompt "eglibc (EXPERIMENTAL)"
@ -20,11 +24,19 @@ config LIBC_EGLIBC
select LIBC_SUPPORT_LINUXTHREADS
depends on EXPERIMENTAL
if LIBC_EGLIBC
source config/libc/eglibc.in
endif
config LIBC_UCLIBC
bool
prompt "uClibc"
select LIBC_SUPPORT_LINUXTHREADS
if LIBC_UCLIBC
source config/libc/uClibc.in
endif
endchoice
config LIBC_VERSION
@ -44,17 +56,34 @@ config LIBC_SUPPORT_LINUXTHREADS
bool
default n
if LIBC_GLIBC
source config/libc/glibc.in
endif
choice
bool
prompt "Threading implementation to use:"
default THREADS_NPTL if LIBC_SUPPORT_NPTL
default THREADS_LINUXTHREADS if LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
default THREADS_NONE if ! LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
if LIBC_EGLIBC
source config/libc/eglibc.in
endif
config THREADS_NPTL
bool
prompt "nptl"
depends on LIBC_SUPPORT_NPTL
if LIBC_UCLIBC
source config/libc/uClibc.in
endif
config THREADS_LINUXTHREADS
bool
prompt "linuxthreads"
depends on LIBC_SUPPORT_LINUXTHREADS
config THREADS_NONE
bool
prompt "none"
endchoice
config THREADS
string
default "nptl" if THREADS_NPTL
default "linuxthreads" if THREADS_LINUXTHREADS
default "none" if THREADS_NONE
config LIBC_VERSION
help

View File

@ -22,35 +22,6 @@ config SHARED_LIBS
You might not want shared librries if you're building for a target that
don't support it (maybe some nommu targets, for example, or bare metal).
choice
bool
prompt "Threading implementation to use:"
default THREADS_NPTL if LIBC_SUPPORT_NPTL
default THREADS_LINUXTHREADS if LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
default THREADS_NONE if ! LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
config THREADS_NPTL
bool
prompt "nptl"
depends on LIBC_SUPPORT_NPTL
config THREADS_LINUXTHREADS
bool
prompt "linuxthreads"
depends on LIBC_SUPPORT_LINUXTHREADS
config THREADS_NONE
bool
prompt "none"
endchoice
config THREADS
string
default "nptl" if THREADS_NPTL
default "linuxthreads" if THREADS_LINUXTHREADS
default "none" if THREADS_NONE
config TARGET_VENDOR
string
prompt "Vendor string"