CMakeLists.txt 865 B

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