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 y
  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"
  10. select RT_USING_POSIX
  11. select RT_USING_POSIX_STDIO
  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
  33. bool "Enable basic POSIX layer, open/read/write/close etc"
  34. select RT_USING_DFS
  35. default n
  36. if RT_USING_POSIX
  37. config RT_USING_POSIX_STDIO
  38. bool "Enable standard I/O"
  39. select RT_USING_DFS
  40. select RT_USING_DFS_DEVFS
  41. default n
  42. config RT_USING_POSIX_POLL
  43. bool "Enable poll()"
  44. select RT_USING_DFS
  45. default n
  46. config RT_USING_POSIX_SELECT
  47. bool "Enable select()"
  48. select RT_USING_DFS
  49. select RT_USING_POSIX_POLL
  50. default n
  51. config RT_USING_POSIX_DELAY
  52. bool "Enable delay functions"
  53. default n
  54. config RT_USING_POSIX_GETLINE
  55. bool "Enable getline()/getdelim() APIs"
  56. default n
  57. config RT_USING_POSIX_MMAP
  58. bool "Enable mmap() API"
  59. select RT_USING_DFS
  60. default n
  61. config RT_USING_POSIX_TERMIOS
  62. bool "Enable termios APIs"
  63. default n
  64. config RT_USING_POSIX_AIO
  65. bool "Enable AIO"
  66. default n
  67. endif
  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