Kconfig 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 && RT_USING_LWP
  6. choice
  7. prompt "Select c standard library"
  8. default RT_USING_MUSL
  9. help
  10. Select c standard library
  11. config RT_USING_NEWLIB
  12. bool "Use libc: newlib"
  13. config RT_USING_MUSL
  14. bool "Use libc: musl (libc.a/libm.a in RT-Thread)"
  15. endchoice
  16. endif
  17. config RT_USING_PTHREADS
  18. bool "Enable pthreads APIs"
  19. default n
  20. if RT_USING_PTHREADS
  21. config PTHREAD_NUM_MAX
  22. int "Maximum number of pthreads"
  23. default 8
  24. endif
  25. if RT_USING_LIBC && RT_USING_DFS
  26. config RT_USING_POSIX
  27. bool "Enable POSIX layer for poll/select, stdin etc"
  28. select RT_USING_DFS_DEVFS
  29. default y
  30. if RT_USING_POSIX
  31. config RT_USING_POSIX_MMAP
  32. bool "Enable mmap() API"
  33. default n
  34. config RT_USING_POSIX_TERMIOS
  35. bool "Enable termios APIs"
  36. default n
  37. config RT_USING_POSIX_GETLINE
  38. bool "Enable getline()/getdelim() APIs"
  39. default n
  40. config RT_USING_POSIX_AIO
  41. bool "Enable AIO"
  42. default n
  43. config RT_USING_POSIX_CLOCKTIME
  44. bool "Enable POSIX clock_time APIs"
  45. default n
  46. endif
  47. endif
  48. if RT_USING_LIBC
  49. config RT_USING_MODULE
  50. bool "Enable dynamic module with dlopen/dlsym/dlclose feature"
  51. default n
  52. if RT_USING_MODULE
  53. config RT_USING_CUSTOM_DLMODULE
  54. bool "Enable load dynamic module by custom"
  55. default n
  56. endif
  57. endif
  58. if RT_USING_LIBC != y
  59. config RT_LIBC_USING_TIME
  60. bool "Enable TIME FUNCTIONS WITHOUT COMPILER'S LIBC"
  61. default y
  62. endif
  63. endmenu