Kconfig 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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 y if RT_USING_SMART
  19. default n
  20. config RT_USING_POSIX_SELECT
  21. bool "Enable I/O Multiplexing select() <sys/select.h>"
  22. select RT_USING_POSIX_POLL
  23. default y if RT_USING_SMART
  24. default n
  25. config RT_USING_POSIX_EVENTFD
  26. bool "Enable I/O event eventfd <sys/eventfd.h>"
  27. select RT_USING_POSIX_POLL
  28. default y if RT_USING_SMART
  29. default n
  30. if RT_USING_SMART
  31. config RT_USING_POSIX_EPOLL
  32. bool "Enable I/O Multiplexing epoll <sys/epoll.h>"
  33. select RT_USING_POSIX_POLL
  34. default y
  35. config RT_USING_POSIX_SIGNALFD
  36. bool "Enable Signalfd <sys/signalfd.h>"
  37. select RT_USING_POSIX_POLL
  38. default y
  39. if RT_USING_POSIX_SIGNALFD
  40. config RT_SIGNALFD_MAX_NUM
  41. int "signaled The maximum number of concurrent firing signals"
  42. range 1 20
  43. default 10
  44. endif
  45. endif
  46. config RT_USING_POSIX_TIMERFD
  47. bool "Enable I/O timerfd <sys/timerfd.h>"
  48. default y if RT_USING_SMART
  49. default n
  50. config RT_USING_POSIX_SOCKET
  51. bool "Enable BSD Socket I/O <sys/socket.h> <netdb.h>"
  52. select RT_USING_POSIX_SELECT
  53. select RT_USING_SAL
  54. default n
  55. config RT_USING_POSIX_TERMIOS
  56. bool "Enable Terminal I/O <termios.h>"
  57. select RT_USING_POSIX_STDIO
  58. default n
  59. config RT_USING_POSIX_AIO
  60. bool "Enable Asynchronous I/O <aio.h>"
  61. default n
  62. config RT_USING_POSIX_MMAN
  63. bool "Enable Memory-Mapped I/O <sys/mman.h>"
  64. default n
  65. endif
  66. config RT_USING_POSIX_DELAY
  67. select RT_USING_KTIME
  68. bool "Enable delay APIs, sleep()/usleep()/msleep() etc"
  69. default n
  70. config RT_USING_POSIX_CLOCK
  71. bool "Enable clock/time APIs, clock_gettime()/clock_settime() etc"
  72. select RT_USING_POSIX_DELAY
  73. default n
  74. config RT_USING_POSIX_TIMER
  75. select RT_USING_KTIME
  76. select RT_USING_RESOURCE_ID
  77. bool "Enable timer APIs, timer_create()/timer_gettime() etc"
  78. default n
  79. config RT_USING_PTHREADS
  80. bool "Enable pthreads APIs"
  81. select RT_USING_POSIX_CLOCK
  82. default n
  83. if RT_USING_PTHREADS
  84. config PTHREAD_NUM_MAX
  85. int "Maximum number of pthreads"
  86. default 8
  87. endif
  88. config RT_USING_MODULE
  89. bool "Enable dynamic module APIs, dlopen()/dlsym()/dlclose() etc"
  90. default n
  91. if RT_USING_MODULE
  92. config RT_USING_CUSTOM_DLMODULE
  93. bool "Enable load dynamic module by custom"
  94. default n
  95. endif
  96. rsource "ipc/Kconfig"
  97. endmenu