Kconfig 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. menu "POSIX layer and C standard library"
  2. config RT_USING_LIBC
  3. bool "Enable libc APIs from toolchain"
  4. default n
  5. if RT_USING_LIBC
  6. config RT_LIBC_USING_TIME
  7. default y
  8. config RT_LIBC_USING_FILEIO
  9. bool "Enable libc with file operation, eg.fopen/fwrite/fread/getchar/STDIO"
  10. select RT_USING_POSIX_FS
  11. select RT_USING_POSIX_DEVIO
  12. default n
  13. config RT_USING_MODULE
  14. bool "Enable dynamic module with dlopen/dlsym/dlclose feature"
  15. default n
  16. if RT_USING_MODULE
  17. config RT_USING_CUSTOM_DLMODULE
  18. bool "Enable load dynamic module by custom"
  19. default n
  20. endif
  21. endif
  22. if RT_USING_LIBC != y
  23. config RT_LIBC_USING_TIME
  24. bool "Enable time functions without compiler's libc"
  25. default y
  26. endif
  27. config RT_LIBC_DEFAULT_TIMEZONE
  28. depends on (RT_LIBC_USING_TIME || RT_USING_LIBC)
  29. int "Set the default time zone (UTC+)"
  30. range -12 12
  31. default 8
  32. config RT_USING_POSIX_FS
  33. bool "Enable POSIX file system, open()/read()/write()/close() etc"
  34. select RT_USING_DFS
  35. select DFS_USING_POSIX
  36. default n
  37. if RT_USING_POSIX_FS
  38. config RT_USING_POSIX_DEVIO
  39. bool "Enable devices as file descriptors"
  40. select RT_USING_DFS_DEVFS
  41. default n
  42. config RT_USING_POSIX_POLL
  43. bool "Enable poll()"
  44. default n
  45. config RT_USING_POSIX_SELECT
  46. bool "Enable select()"
  47. select RT_USING_POSIX_POLL
  48. default n
  49. endif
  50. config RT_USING_POSIX_DELAY
  51. bool "Enable delay APIs, sleep()/usleep()/msleep() etc"
  52. default n
  53. config RT_USING_POSIX_GETLINE
  54. bool "Enable getline()/getdelim()"
  55. select RT_USING_LIBC
  56. select RT_LIBC_USING_FILEIO
  57. default n
  58. config RT_USING_POSIX_MMAP
  59. bool "Enable mmap()"
  60. select RT_USING_POSIX_FS
  61. default n
  62. config RT_USING_POSIX_TERMIOS
  63. bool "Enable termios APIs"
  64. default n
  65. config RT_USING_POSIX_AIO
  66. bool "Enable AIO APIs"
  67. default n
  68. config RT_USING_PTHREADS
  69. bool "Enable pthreads APIs"
  70. default n
  71. if RT_USING_PTHREADS
  72. config PTHREAD_NUM_MAX
  73. int "Maximum number of pthreads"
  74. default 8
  75. endif
  76. endmenu