Kconfig 2.1 KB

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