Kconfig 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. if RT_USING_MUSL
  18. config RT_USING_MLIB
  19. bool "Use libc: mlib"
  20. default n
  21. endif
  22. config RT_USING_PTHREADS
  23. bool "Enable pthreads APIs"
  24. default n
  25. if RT_USING_PTHREADS
  26. config PTHREAD_NUM_MAX
  27. int "Maximum number of pthreads"
  28. default 8
  29. endif
  30. if RT_USING_LIBC && RT_USING_DFS
  31. config RT_USING_POSIX
  32. bool "Enable POSIX layer for poll/select, stdin etc"
  33. select RT_USING_DFS_DEVFS
  34. default y
  35. if RT_USING_POSIX
  36. config RT_USING_POSIX_MMAP
  37. bool "Enable mmap() API"
  38. default n
  39. config RT_USING_POSIX_TERMIOS
  40. bool "Enable termios APIs"
  41. default n
  42. config RT_USING_POSIX_GETLINE
  43. bool "Enable getline()/getdelim() APIs"
  44. default n
  45. config RT_USING_POSIX_AIO
  46. bool "Enable AIO"
  47. default n
  48. config RT_POSIX_AIO_THREAD_STACK_SIZE
  49. int "Set posix aio thread stack size"
  50. default 2048
  51. depends on RT_USING_POSIX_AIO
  52. config RT_USING_POSIX_CLOCKTIME
  53. bool "Enable POSIX clock_time APIs"
  54. default n
  55. endif
  56. endif
  57. if RT_USING_LIBC
  58. config RT_USING_MODULE
  59. bool "Enable dynamic module with dlopen/dlsym/dlclose feature"
  60. default n
  61. if RT_USING_MODULE
  62. config RT_USING_CUSTOM_DLMODULE
  63. bool "Enable load dynamic module by custom"
  64. default n
  65. endif
  66. endif
  67. if RT_USING_LIBC != y
  68. config RT_LIBC_USING_TIME
  69. bool "Enable TIME FUNCTIONS WITHOUT COMPILER'S LIBC"
  70. default y
  71. endif
  72. endmenu