Kconfig 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 IO"
  39. select RT_USING_DFS_DEVFS
  40. default n
  41. config RT_USING_POSIX_POLL
  42. bool "Enable poll()"
  43. default n
  44. config RT_USING_POSIX_SELECT
  45. bool "Enable select()"
  46. select RT_USING_POSIX_POLL
  47. default n
  48. config RT_USING_POSIX_DELAY
  49. bool "Enable delay functions"
  50. default n
  51. config RT_USING_POSIX_GETLINE
  52. bool "Enable getline()/getdelim() APIs"
  53. default n
  54. config RT_USING_POSIX_MMAP
  55. bool "Enable mmap() API"
  56. default n
  57. config RT_USING_POSIX_TERMIOS
  58. bool "Enable termios APIs"
  59. default n
  60. config RT_USING_POSIX_AIO
  61. bool "Enable AIO"
  62. default n
  63. config RT_USING_PTHREADS
  64. bool "Enable pthreads APIs"
  65. default n
  66. if RT_USING_PTHREADS
  67. config PTHREAD_NUM_MAX
  68. int "Maximum number of pthreads"
  69. default 8
  70. endif
  71. endif
  72. endmenu