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

config RT_USING_LIBC
B
bernard 已提交
4 5
    bool "Enable libc APIs from toolchain"
    default y
B
bernard 已提交
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
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
        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

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

45
if RT_USING_POSIX
46 47 48

    config RT_USING_POSIX_POLL
        bool "Enable poll()"
49
        default n
50

51 52 53
    config RT_USING_POSIX_SELECT
        bool "Enable select()"
        select RT_USING_POSIX_POLL
54
        default n
B
bernard 已提交
55

56 57 58
    config RT_USING_POSIX_GETLINE
        bool "Enable getline()/getdelim() APIs"
        default n
B
bernard 已提交
59

60 61 62 63 64 65 66 67
    config RT_USING_POSIX_MMAP
        bool "Enable mmap() API"
        default n

    config RT_USING_POSIX_TERMIOS
        bool "Enable termios APIs"
        default n

68 69 70
    config RT_USING_POSIX_AIO
        bool "Enable AIO"
        default n
71

72 73 74
    config RT_USING_PTHREADS
        bool "Enable pthreads APIs"
        default n
L
liang yongxiang 已提交
75

76 77 78 79
    if RT_USING_PTHREADS
        config PTHREAD_NUM_MAX
            int "Maximum number of pthreads"
            default 8
B
bernard 已提交
80
    endif
81 82
endif

B
bernard 已提交
83
endmenu