Kconfig 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. menu "POSIX (Portable Operating System Interface) layer"
  2. config RT_USING_POSIX_FS
  3. bool "Enable POSIX file system and I/O"
  4. select RT_USING_DFS
  5. select DFS_USING_POSIX
  6. default n
  7. if RT_USING_POSIX_FS
  8. config RT_USING_POSIX_DEVIO
  9. bool "Enable devices as file descriptors"
  10. select RT_USING_DFS_DEVFS
  11. default n
  12. config RT_USING_POSIX_STDIO
  13. bool "Enable standard I/O devices, e.g. STDOUT_FILENO"
  14. select RT_USING_POSIX_DEVIO
  15. default n
  16. config RT_USING_POSIX_POLL
  17. bool "Enable I/O Multiplexing poll() <poll.h>"
  18. default n
  19. config RT_USING_POSIX_SELECT
  20. bool "Enable I/O Multiplexing select() <sys/select.h>"
  21. select RT_USING_POSIX_POLL
  22. default n
  23. config RT_USING_POSIX_EVENTFD
  24. bool "Enable I/O event eventfd <sys/eventfd.h>"
  25. select RT_USING_POSIX_POLL
  26. default n
  27. if RT_USING_SMART
  28. config RT_USING_POSIX_EPOLL
  29. bool "Enable I/O Multiplexing epoll <sys/epoll.h>"
  30. select RT_USING_POSIX_POLL
  31. default n
  32. config RT_USING_POSIX_SIGNALFD
  33. bool "Enable Signalfd <sys/signalfd.h>"
  34. select RT_USING_POSIX_POLL
  35. default n
  36. if RT_USING_POSIX_SIGNALFD
  37. config RT_SIGNALFD_MAX_NUM
  38. int "signaled The maximum number of concurrent firing signals"
  39. range 1 20
  40. default 10
  41. endif
  42. endif
  43. config RT_USING_POSIX_TIMERFD
  44. bool "Enable I/O timerfd <sys/timerfd.h>"
  45. default n
  46. config RT_USING_POSIX_SOCKET
  47. bool "Enable BSD Socket I/O <sys/socket.h> <netdb.h>"
  48. select RT_USING_POSIX_SELECT
  49. select RT_USING_SAL
  50. default n
  51. config RT_USING_POSIX_TERMIOS
  52. bool "Enable Terminal I/O <termios.h>"
  53. select RT_USING_POSIX_STDIO
  54. default n
  55. config RT_USING_POSIX_AIO
  56. bool "Enable Asynchronous I/O <aio.h>"
  57. default n
  58. config RT_USING_POSIX_MMAN
  59. bool "Enable Memory-Mapped I/O <sys/mman.h>"
  60. default n
  61. endif
  62. config RT_USING_POSIX_DELAY
  63. select RT_USING_KTIME
  64. bool "Enable delay APIs, sleep()/usleep()/msleep() etc"
  65. default n
  66. config RT_USING_POSIX_CLOCK
  67. bool "Enable clock/time APIs, clock_gettime()/clock_settime() etc"
  68. select RT_USING_POSIX_DELAY
  69. default n
  70. config RT_USING_POSIX_TIMER
  71. select RT_USING_KTIME
  72. select RT_USING_RESOURCE_ID
  73. bool "Enable timer APIs, timer_create()/timer_gettime() etc"
  74. default n
  75. config RT_USING_PTHREADS
  76. bool "Enable pthreads APIs"
  77. select RT_USING_POSIX_CLOCK
  78. default n
  79. if RT_USING_PTHREADS
  80. config PTHREAD_NUM_MAX
  81. int "Maximum number of pthreads"
  82. default 8
  83. endif
  84. config RT_USING_MODULE
  85. bool "Enable dynamic module APIs, dlopen()/dlsym()/dlclose() etc"
  86. default n
  87. if RT_USING_MODULE
  88. config RT_USING_CUSTOM_DLMODULE
  89. bool "Enable load dynamic module by custom"
  90. default n
  91. endif
  92. source "$RTT_DIR/components/libc/posix/ipc/Kconfig"
  93. endmenu