Kconfig 1.8 KB

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