Kconfig 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. menu "POSIX layer and C standard library"
  2. config RT_USING_LIBC
  3. bool "Enable libc APIs from toolchain"
  4. select RT_USING_DFS
  5. select RT_USING_POSIX
  6. default y
  7. config RT_USING_PTHREADS
  8. bool "Enable pthreads APIs"
  9. default n
  10. if RT_USING_PTHREADS
  11. config PTHREAD_NUM_MAX
  12. int "Maximum number of pthreads"
  13. default 8
  14. endif
  15. if RT_USING_DFS
  16. config RT_USING_POSIX
  17. bool "Enable POSIX layer, open/read/write/select etc"
  18. select RT_USING_DFS_DEVFS
  19. default y
  20. if RT_USING_POSIX
  21. config RT_USING_POSIX_MMAP
  22. bool "Enable mmap() API"
  23. default n
  24. config RT_USING_POSIX_TERMIOS
  25. bool "Enable termios APIs"
  26. default n
  27. config RT_USING_POSIX_GETLINE
  28. bool "Enable getline()/getdelim() APIs"
  29. default n
  30. config RT_USING_POSIX_AIO
  31. bool "Enable AIO"
  32. default n
  33. endif
  34. endif
  35. if RT_USING_LIBC
  36. config RT_LIBC_USING_TIME
  37. default y
  38. config RT_USING_MODULE
  39. bool "Enable dynamic module with dlopen/dlsym/dlclose feature"
  40. default n
  41. if RT_USING_MODULE
  42. config RT_USING_CUSTOM_DLMODULE
  43. bool "Enable load dynamic module by custom"
  44. default n
  45. endif
  46. endif
  47. if RT_USING_LIBC != y
  48. config RT_LIBC_USING_TIME
  49. bool "Enable time functions without compiler's libc"
  50. default y
  51. endif
  52. config RT_LIBC_DEFAULT_TIMEZONE
  53. depends on (RT_LIBC_USING_TIME || RT_USING_LIBC)
  54. int "Set the default time zone (UTC+)"
  55. range -12 12
  56. default 8
  57. endmenu