Kconfig 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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_POSIX_AIO_THREAD_STACK_SIZE
  44. int "Set posix aio thread stack size"
  45. default 2048
  46. depends on RT_USING_POSIX_AIO
  47. config RT_USING_POSIX_CLOCKTIME
  48. bool "Enable POSIX clock_time APIs"
  49. default n
  50. endif
  51. endif
  52. if RT_USING_LIBC
  53. config RT_USING_MODULE
  54. bool "Enable dynamic module with dlopen/dlsym/dlclose feature"
  55. default n
  56. if RT_USING_MODULE
  57. config RT_USING_CUSTOM_DLMODULE
  58. bool "Enable load dynamic module by custom"
  59. default n
  60. endif
  61. endif
  62. if RT_USING_LIBC != y
  63. config RT_LIBC_USING_TIME
  64. bool "Enable TIME FUNCTIONS WITHOUT COMPILER'S LIBC"
  65. default y
  66. endif
  67. endmenu