CMakeLists.txt 645 B

123456789101112131415161718
  1. idf_component_register(SRCS "vfs.c"
  2. "vfs_eventfd.c"
  3. "vfs_uart.c"
  4. "vfs_semihost.c"
  5. INCLUDE_DIRS include
  6. PRIV_REQUIRES driver)
  7. if(CONFIG_ESP_CONSOLE_USB_CDC)
  8. target_sources(${COMPONENT_LIB} PRIVATE "vfs_cdcacm.c")
  9. endif()
  10. if(CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG)
  11. target_sources(${COMPONENT_LIB} PRIVATE "vfs_usb_serial_jtag.c")
  12. endif()
  13. # Some newlib syscalls are implemented in vfs.c, make sure these are always
  14. # seen by the linker
  15. target_link_libraries(${COMPONENT_LIB} INTERFACE "-u vfs_include_syscalls_impl")