Kconfig 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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_DFS
  11. select RT_USING_POSIX
  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_PTHREADS
  33. bool "Enable pthreads APIs"
  34. default n
  35. if RT_USING_PTHREADS
  36. config PTHREAD_NUM_MAX
  37. int "Maximum number of pthreads"
  38. default 8
  39. endif
  40. if RT_USING_DFS
  41. config RT_USING_POSIX
  42. bool "Enable POSIX layer, open/read/write/select etc"
  43. select RT_USING_DFS_DEVFS
  44. default y
  45. if RT_USING_POSIX
  46. config RT_USING_POSIX_MMAP
  47. bool "Enable mmap() API"
  48. default n
  49. config RT_USING_POSIX_TERMIOS
  50. bool "Enable termios APIs"
  51. default n
  52. config RT_USING_POSIX_GETLINE
  53. bool "Enable getline()/getdelim() APIs"
  54. default n
  55. config RT_USING_POSIX_AIO
  56. bool "Enable AIO"
  57. default n
  58. endif
  59. endif
  60. endmenu