2022-01-10 16:20:39 +08:00
|
|
|
menu "POSIX layer and C standard library"
|
|
|
|
|
2022-01-10 17:10:14 +08:00
|
|
|
config RT_USING_LIBC
|
|
|
|
bool "Enable libc APIs from toolchain"
|
|
|
|
default y
|
|
|
|
|
|
|
|
config RT_USING_PTHREADS
|
|
|
|
bool "Enable pthreads APIs"
|
2022-01-10 16:20:39 +08:00
|
|
|
default n
|
|
|
|
|
2022-01-10 17:10:14 +08:00
|
|
|
if RT_USING_PTHREADS
|
|
|
|
config PTHREAD_NUM_MAX
|
|
|
|
int "Maximum number of pthreads"
|
|
|
|
default 8
|
|
|
|
endif
|
|
|
|
|
|
|
|
if RT_USING_LIBC && RT_USING_DFS
|
|
|
|
config RT_USING_POSIX
|
|
|
|
bool "Enable POSIX layer for compatibility with UNIX APIs, poll/select etc"
|
|
|
|
select RT_USING_DFS_DEVFS
|
|
|
|
default y
|
|
|
|
|
|
|
|
if RT_USING_POSIX
|
|
|
|
config RT_USING_POSIX_MMAP
|
|
|
|
bool "Enable mmap() API"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_USING_POSIX_TERMIOS
|
|
|
|
bool "Enable termios APIs"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_USING_POSIX_GETLINE
|
|
|
|
bool "Enable getline()/getdelim() APIs"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_USING_POSIX_AIO
|
|
|
|
bool "Enable AIO"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
if RT_USING_LIBC
|
|
|
|
config RT_LIBC_USING_TIME
|
|
|
|
default y
|
|
|
|
|
|
|
|
config RT_USING_MODULE
|
|
|
|
bool "Enable dynamic module with dlopen/dlsym/dlclose feature"
|
|
|
|
default n
|
|
|
|
|
|
|
|
if RT_USING_MODULE
|
2022-01-10 16:20:39 +08:00
|
|
|
config RT_USING_CUSTOM_DLMODULE
|
|
|
|
bool "Enable load dynamic module by custom"
|
|
|
|
default n
|
2022-01-10 17:10:14 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
if RT_USING_LIBC != y
|
|
|
|
config RT_LIBC_USING_TIME
|
|
|
|
bool "Enable time functions without compiler's libc"
|
|
|
|
default y
|
2022-01-10 16:20:39 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
config RT_LIBC_DEFAULT_TIMEZONE
|
2022-01-10 17:10:14 +08:00
|
|
|
depends on (RT_LIBC_USING_TIME || RT_USING_LIBC)
|
2022-01-10 16:20:39 +08:00
|
|
|
int "Set the default time zone (UTC+)"
|
|
|
|
range -12 12
|
|
|
|
default 8
|
|
|
|
|
|
|
|
endmenu
|