Kconfig 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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_NEWLIB
  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. endif
  44. endif
  45. if RT_USING_LIBC
  46. config RT_USING_MODULE
  47. bool "Enable dynamic module with dlopen/dlsym/dlclose feature"
  48. default n
  49. if RT_USING_MODULE
  50. config RT_USING_CUSTOM_DLMODULE
  51. bool "Enable load dynamic module by custom"
  52. default n
  53. endif
  54. endif
  55. if RT_USING_LIBC != y
  56. config RT_LIBC_USING_TIME
  57. bool "Enable TIME FUNCTIONS WITHOUT COMPILER'S LIBC"
  58. default y
  59. endif
  60. endmenu