mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
bc09031496
Deprecated esp_vfs_dev_uart_xxx APIs vfs_uart test case moved to esp_driver_uart test_apps Astyle fixed for uart_vfs
20 lines
631 B
CMake
20 lines
631 B
CMake
set(srcs)
|
|
set(public_include "include")
|
|
if(CONFIG_SOC_UART_SUPPORTED)
|
|
list(APPEND srcs "src/uart.c")
|
|
endif()
|
|
|
|
idf_component_register(SRCS ${srcs}
|
|
INCLUDE_DIRS ${public_include}
|
|
PRIV_REQUIRES esp_pm esp_driver_gpio esp_ringbuf
|
|
LDFRAGMENTS "linker.lf"
|
|
)
|
|
|
|
if(CONFIG_VFS_SUPPORT_IO)
|
|
target_link_libraries(${COMPONENT_LIB} PUBLIC idf::vfs)
|
|
target_sources(${COMPONENT_LIB} PRIVATE "src/uart_vfs.c")
|
|
if(CONFIG_ESP_CONSOLE_UART)
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-u uart_vfs_include_dev_init")
|
|
endif()
|
|
endif()
|