2017-10-17 22:27:06 +08:00
|
|
|
menu "POSIX layer and C standard library"
|
2017-01-31 11:54:12 +08:00
|
|
|
|
|
|
|
config RT_USING_LIBC
|
2017-10-13 12:44:54 +08:00
|
|
|
bool "Enable libc APIs from toolchain"
|
2021-10-21 09:44:01 +08:00
|
|
|
select RT_USING_DFS
|
|
|
|
select RT_USING_POSIX
|
2017-10-13 12:44:54 +08:00
|
|
|
default y
|
2017-01-31 11:54:12 +08:00
|
|
|
|
|
|
|
config RT_USING_PTHREADS
|
2017-10-13 12:44:54 +08:00
|
|
|
bool "Enable pthreads APIs"
|
|
|
|
default n
|
|
|
|
|
2019-05-12 21:48:54 +08:00
|
|
|
if RT_USING_PTHREADS
|
|
|
|
config PTHREAD_NUM_MAX
|
|
|
|
int "Maximum number of pthreads"
|
|
|
|
default 8
|
|
|
|
endif
|
|
|
|
|
2021-10-21 09:44:01 +08:00
|
|
|
if RT_USING_DFS
|
2017-10-17 22:27:06 +08:00
|
|
|
config RT_USING_POSIX
|
2021-10-21 09:44:01 +08:00
|
|
|
bool "Enable POSIX layer, open/read/write/select etc"
|
2017-10-13 12:44:54 +08:00
|
|
|
select RT_USING_DFS_DEVFS
|
|
|
|
default y
|
|
|
|
|
2017-10-17 22:27:06 +08:00
|
|
|
if RT_USING_POSIX
|
2021-05-16 00:02:58 +08:00
|
|
|
config RT_USING_POSIX_MMAP
|
|
|
|
bool "Enable mmap() API"
|
|
|
|
default n
|
2017-10-13 12:44:54 +08:00
|
|
|
|
2021-05-16 00:02:58 +08:00
|
|
|
config RT_USING_POSIX_TERMIOS
|
|
|
|
bool "Enable termios APIs"
|
|
|
|
default n
|
2020-09-05 19:47:34 +08:00
|
|
|
|
2021-05-16 00:02:58 +08:00
|
|
|
config RT_USING_POSIX_GETLINE
|
|
|
|
bool "Enable getline()/getdelim() APIs"
|
|
|
|
default n
|
2018-07-18 11:05:39 +08:00
|
|
|
|
2021-05-16 00:02:58 +08:00
|
|
|
config RT_USING_POSIX_AIO
|
|
|
|
bool "Enable AIO"
|
|
|
|
default n
|
2017-10-17 22:27:06 +08:00
|
|
|
endif
|
2018-04-25 23:26:20 +08:00
|
|
|
|
2019-12-26 11:03:51 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
if RT_USING_LIBC
|
2021-09-26 03:03:57 +08:00
|
|
|
config RT_LIBC_USING_TIME
|
|
|
|
default y
|
|
|
|
|
2018-08-30 20:27:45 +08:00
|
|
|
config RT_USING_MODULE
|
|
|
|
bool "Enable dynamic module with dlopen/dlsym/dlclose feature"
|
2018-04-25 23:26:20 +08:00
|
|
|
default n
|
2019-12-26 11:03:51 +08:00
|
|
|
|
|
|
|
if RT_USING_MODULE
|
2021-10-21 09:44:01 +08:00
|
|
|
config RT_USING_CUSTOM_DLMODULE
|
|
|
|
bool "Enable load dynamic module by custom"
|
|
|
|
default n
|
2019-12-26 11:03:51 +08:00
|
|
|
endif
|
|
|
|
|
2017-10-13 12:44:54 +08:00
|
|
|
endif
|
2017-01-31 11:54:12 +08:00
|
|
|
|
2019-08-22 15:34:50 +08:00
|
|
|
if RT_USING_LIBC != y
|
2021-02-26 06:34:52 +08:00
|
|
|
config RT_LIBC_USING_TIME
|
2021-05-01 05:51:18 +08:00
|
|
|
bool "Enable time functions without compiler's libc"
|
2021-02-26 06:34:52 +08:00
|
|
|
default y
|
2019-08-22 15:34:50 +08:00
|
|
|
endif
|
|
|
|
|
2021-07-18 14:34:35 +08:00
|
|
|
config RT_LIBC_DEFAULT_TIMEZONE
|
2021-05-01 05:51:18 +08:00
|
|
|
depends on (RT_LIBC_USING_TIME || RT_USING_LIBC)
|
2021-07-18 14:34:35 +08:00
|
|
|
int "Set the default time zone (UTC+)"
|
2021-05-01 05:51:18 +08:00
|
|
|
range -12 12
|
|
|
|
default 8
|
|
|
|
|
2017-01-31 11:54:12 +08:00
|
|
|
endmenu
|