Kconfig 2.2 KB
Newer Older
B
bernard 已提交
1
menu "POSIX layer and C standard library"
B
bernard 已提交
2 3

config RT_USING_LIBC
B
bernard 已提交
4
    bool "Enable libc APIs from toolchain"
mysterywolf's avatar
mysterywolf 已提交
5 6
    select RT_USING_HEAP
    default n
B
bernard 已提交
7

8 9 10 11 12 13 14
if RT_USING_LIBC
    config RT_LIBC_USING_TIME
        default y

    config RT_LIBC_USING_FILEIO
        bool "Enable libc with file operation, eg.fopen/fwrite/fread/getchar"
        select RT_USING_POSIX
15
        select RT_USING_POSIX_STDIO
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
        default n

    config RT_USING_MODULE
        bool "Enable dynamic module with dlopen/dlsym/dlclose feature"
        default n

    if RT_USING_MODULE
        config RT_USING_CUSTOM_DLMODULE
            bool "Enable load dynamic module by custom"
            default n
    endif
endif

if RT_USING_LIBC != y
    config RT_LIBC_USING_TIME
    bool "Enable time functions without compiler's libc"
    default y
endif

config RT_LIBC_DEFAULT_TIMEZONE
    depends on (RT_LIBC_USING_TIME || RT_USING_LIBC)
    int "Set the default time zone (UTC+)"
    range -12 12
    default 8

41
config RT_USING_POSIX
42
    bool "Enable basic POSIX layer, open()/read()/write()/close() etc"
43
    select RT_USING_DFS
B
bernard 已提交
44 45
    default n

46
if RT_USING_POSIX
mysterywolf's avatar
mysterywolf 已提交
47
    config RT_USING_POSIX_STDIO
48
        bool "Enable standard I/O, STDOUT_FILENO/STDIN_FILENO/STDERR_FILENO"
mysterywolf's avatar
mysterywolf 已提交
49
        select RT_USING_DFS
mysterywolf's avatar
mysterywolf 已提交
50 51
        select RT_USING_DFS_DEVFS
        default n
52 53 54

    config RT_USING_POSIX_POLL
        bool "Enable poll()"
mysterywolf's avatar
mysterywolf 已提交
55
        select RT_USING_DFS
56
        default n
57

58 59
    config RT_USING_POSIX_SELECT
        bool "Enable select()"
mysterywolf's avatar
mysterywolf 已提交
60
        select RT_USING_DFS
61
        select RT_USING_POSIX_POLL
62
        default n
B
bernard 已提交
63

mysterywolf's avatar
mysterywolf 已提交
64
    config RT_USING_POSIX_DELAY
65
        bool "Enable delay APIs, sleep()/usleep()/msleep() etc"
mysterywolf's avatar
mysterywolf 已提交
66 67
        default n

68
    config RT_USING_POSIX_GETLINE
69
        bool "Enable getline()/getdelim()"
70
        default n
B
bernard 已提交
71

72
    config RT_USING_POSIX_MMAP
73
        bool "Enable mmap()"
mysterywolf's avatar
mysterywolf 已提交
74
        select RT_USING_DFS
75 76 77 78 79 80
        default n

    config RT_USING_POSIX_TERMIOS
        bool "Enable termios APIs"
        default n

81
    config RT_USING_POSIX_AIO
82
        bool "Enable AIO APIs"
83
        default n
mysterywolf's avatar
mysterywolf 已提交
84
endif
85

mysterywolf's avatar
mysterywolf 已提交
86 87 88
config RT_USING_PTHREADS
    bool "Enable pthreads APIs"
    default n
L
liang yongxiang 已提交
89

mysterywolf's avatar
mysterywolf 已提交
90 91 92 93
if RT_USING_PTHREADS
    config PTHREAD_NUM_MAX
        int "Maximum number of pthreads"
        default 8
94 95
endif

B
bernard 已提交
96
endmenu