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-11-13 13:17:16 +08:00
|
|
|
select RT_USING_HEAP
|
|
|
|
default n
|
2017-01-31 11:54:12 +08:00
|
|
|
|
2021-10-26 12:51:32 +08:00
|
|
|
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
|
2021-11-24 21:41:10 +08:00
|
|
|
select RT_USING_POSIX_DEVIO
|
2021-10-26 12:51:32 +08:00
|
|
|
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
|
|
|
|
|
2021-10-31 04:43:25 +08:00
|
|
|
config RT_USING_POSIX
|
2021-11-11 02:44:35 +08:00
|
|
|
bool "Enable basic POSIX layer, open()/read()/write()/close() etc"
|
2021-10-31 04:43:25 +08:00
|
|
|
select RT_USING_DFS
|
2017-10-13 12:44:54 +08:00
|
|
|
default n
|
|
|
|
|
2021-10-31 04:43:25 +08:00
|
|
|
if RT_USING_POSIX
|
2021-11-24 21:41:10 +08:00
|
|
|
config RT_USING_POSIX_DEVIO
|
|
|
|
bool "Enable devices as file descriptors"
|
2021-11-10 11:59:31 +08:00
|
|
|
select RT_USING_DFS
|
2021-11-08 10:40:19 +08:00
|
|
|
select RT_USING_DFS_DEVFS
|
|
|
|
default n
|
2021-11-08 09:47:36 +08:00
|
|
|
|
|
|
|
config RT_USING_POSIX_POLL
|
|
|
|
bool "Enable poll()"
|
2021-11-10 11:59:31 +08:00
|
|
|
select RT_USING_DFS
|
2021-10-31 04:43:25 +08:00
|
|
|
default n
|
2019-05-12 21:48:54 +08:00
|
|
|
|
2021-11-08 09:47:36 +08:00
|
|
|
config RT_USING_POSIX_SELECT
|
|
|
|
bool "Enable select()"
|
2021-11-10 11:59:31 +08:00
|
|
|
select RT_USING_DFS
|
2021-11-08 09:47:36 +08:00
|
|
|
select RT_USING_POSIX_POLL
|
2021-10-31 04:43:25 +08:00
|
|
|
default n
|
2017-10-13 12:44:54 +08:00
|
|
|
|
2021-11-08 10:03:16 +08:00
|
|
|
config RT_USING_POSIX_DELAY
|
2021-11-11 02:44:35 +08:00
|
|
|
bool "Enable delay APIs, sleep()/usleep()/msleep() etc"
|
2021-11-08 10:03:16 +08:00
|
|
|
default n
|
|
|
|
|
2021-10-31 04:43:25 +08:00
|
|
|
config RT_USING_POSIX_GETLINE
|
2021-11-11 02:44:35 +08:00
|
|
|
bool "Enable getline()/getdelim()"
|
2021-10-31 04:43:25 +08:00
|
|
|
default n
|
2017-10-13 12:44:54 +08:00
|
|
|
|
2021-11-08 09:47:36 +08:00
|
|
|
config RT_USING_POSIX_MMAP
|
2021-11-11 02:44:35 +08:00
|
|
|
bool "Enable mmap()"
|
2021-11-10 11:59:31 +08:00
|
|
|
select RT_USING_DFS
|
2021-11-08 09:47:36 +08:00
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_USING_POSIX_TERMIOS
|
|
|
|
bool "Enable termios APIs"
|
|
|
|
default n
|
|
|
|
|
2021-10-31 04:43:25 +08:00
|
|
|
config RT_USING_POSIX_AIO
|
2021-11-11 02:44:35 +08:00
|
|
|
bool "Enable AIO APIs"
|
2021-10-31 04:43:25 +08:00
|
|
|
default n
|
2021-11-09 10:14:01 +08:00
|
|
|
endif
|
2020-09-05 19:47:34 +08:00
|
|
|
|
2021-11-09 10:14:01 +08:00
|
|
|
config RT_USING_PTHREADS
|
|
|
|
bool "Enable pthreads APIs"
|
|
|
|
default n
|
2018-07-18 11:05:39 +08:00
|
|
|
|
2021-11-09 10:14:01 +08:00
|
|
|
if RT_USING_PTHREADS
|
|
|
|
config PTHREAD_NUM_MAX
|
|
|
|
int "Maximum number of pthreads"
|
|
|
|
default 8
|
2019-12-26 11:03:51 +08:00
|
|
|
endif
|
|
|
|
|
2017-01-31 11:54:12 +08:00
|
|
|
endmenu
|