Kconfig 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. default n
  12. config RT_USING_MODULE
  13. bool "Enable dynamic module with dlopen/dlsym/dlclose feature"
  14. default n
  15. if RT_USING_MODULE
  16. config RT_USING_CUSTOM_DLMODULE
  17. bool "Enable load dynamic module by custom"
  18. default n
  19. endif
  20. endif
  21. if RT_USING_LIBC != y
  22. config RT_LIBC_USING_TIME
  23. bool "Enable time functions without compiler's libc"
  24. default y
  25. endif
  26. config RT_LIBC_DEFAULT_TIMEZONE
  27. depends on (RT_LIBC_USING_TIME || RT_USING_LIBC)
  28. int "Set the default time zone (UTC+)"
  29. range -12 12
  30. default 8
  31. config RT_USING_POSIX
  32. bool "Enable basic POSIX layer, open/read/write/close etc"
  33. select RT_USING_DFS
  34. default n
  35. if RT_USING_POSIX
  36. config RT_USING_POSIX_STDIO
  37. bool "Enable standard IO"
  38. select RT_USING_DFS_DEVFS
  39. default n
  40. config RT_USING_POSIX_POLL
  41. bool "Enable poll()"
  42. default n
  43. config RT_USING_POSIX_SELECT
  44. bool "Enable select()"
  45. select RT_USING_POSIX_POLL
  46. default n
  47. config RT_USING_POSIX_DELAY
  48. bool "Enable delay functions"
  49. default n
  50. config RT_USING_POSIX_GETLINE
  51. bool "Enable getline()/getdelim() APIs"
  52. default n
  53. config RT_USING_POSIX_MMAP
  54. bool "Enable mmap() API"
  55. default n
  56. config RT_USING_POSIX_TERMIOS
  57. bool "Enable termios APIs"
  58. default n
  59. config RT_USING_POSIX_AIO
  60. bool "Enable AIO"
  61. default n
  62. config RT_USING_PTHREADS
  63. bool "Enable pthreads APIs"
  64. default n
  65. if RT_USING_PTHREADS
  66. config PTHREAD_NUM_MAX
  67. int "Maximum number of pthreads"
  68. default 8
  69. endif
  70. endif
  71. endmenu