1
0

Kconfig 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. select RT_USING_DFS_DEVFS
  35. default n
  36. if RT_USING_POSIX
  37. config RT_USING_POSIX_MMAP
  38. bool "Enable mmap() API"
  39. default n
  40. config RT_USING_POSIX_TERMIOS
  41. bool "Enable termios APIs"
  42. default n
  43. config RT_USING_POSIX_GETLINE
  44. bool "Enable getline()/getdelim() APIs"
  45. default n
  46. config RT_USING_POSIX_AIO
  47. bool "Enable AIO"
  48. default n
  49. config RT_USING_PTHREADS
  50. bool "Enable pthreads APIs"
  51. default n
  52. if RT_USING_PTHREADS
  53. config PTHREAD_NUM_MAX
  54. int "Maximum number of pthreads"
  55. default 8
  56. endif
  57. endif
  58. endmenu