summaryrefslogtreecommitdiff
path: root/config/libc.in
blob: da86f1cbf113f0ecf6b7defce05d04cb53d13c11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# C library options

menu "C-library"

choice
    bool
    prompt "C-library to use:"
    default LIBC_GLIBC

config LIBC_GLIBC
    bool
    prompt "glibc"
    select LIBC_SUPPORT_NPTL
    select LIBC_SUPPORT_LINUXTHREADS

config LIBC_UCLIBC
    bool
    prompt "uClibc"
    select LIBC_SUPPORT_LINUXTHREADS

endchoice

config LIBC_VERSION
    string

config LIBC
    string
    default "glibc" if LIBC_GLIBC
    default "uClibc" if LIBC_UCLIBC

config LIBC_SUPPORT_NPTL
    bool
    default n

config LIBC_SUPPORT_LINUXTHREADS
    bool
    default n

choice
    bool
    prompt "Threading implentation to use:"
    default LIBC_THREADS_NPTL           if LIBC_SUPPORT_NPTL
    default LIBC_THREADS_LINUXTHREADS   if LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
    default LIBC_THREADS_NONE           if ! LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
    depends on EXPERIMENTAL

config LIBC_THREADS_NPTL
    bool
    prompt "nptl (EXPERIMENTAL)"
    depends on LIBC_SUPPORT_NPTL
    depends on EXPERIMENTAL

config LIBC_THREADS_LINUXTHREADS
    bool
    prompt "linuxthreads"
    depends on LIBC_SUPPORT_LINUXTHREADS

config LIBC_THREADS_NONE
    bool
    prompt "none"

endchoice

if LIBC_GLIBC
source config/libc_glibc.in
endif

if LIBC_UCLIBC
source config/libc_uClibc.in
endif

endmenu