mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
fix(linux): Exclude CDC ROM console and USJ driver from linux target
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
idf_build_get_property(target IDF_TARGET)
|
||||
|
||||
if(${target} STREQUAL "linux")
|
||||
return() # This component is not supported by the POSIX/Linux simulator
|
||||
endif()
|
||||
|
||||
set(srcs)
|
||||
set(include "include")
|
||||
|
||||
@@ -9,15 +13,9 @@ if(CONFIG_SOC_USB_SERIAL_JTAG_SUPPORTED)
|
||||
"src/usb_serial_jtag_connection_monitor.c")
|
||||
endif()
|
||||
|
||||
if(${target} STREQUAL "linux")
|
||||
set(priv_requires esp_ringbuf esp_timer)
|
||||
else()
|
||||
set(priv_requires esp_driver_gpio esp_ringbuf esp_pm esp_timer esp_hal_usb)
|
||||
endif()
|
||||
|
||||
idf_component_register(SRCS ${srcs}
|
||||
INCLUDE_DIRS ${include}
|
||||
PRIV_REQUIRES "${priv_requires}"
|
||||
PRIV_REQUIRES esp_driver_gpio esp_ringbuf esp_pm esp_timer esp_hal_usb
|
||||
LDFRAGMENTS "linker.lf"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
idf_build_get_property(target IDF_TARGET)
|
||||
|
||||
if(${target} STREQUAL "linux")
|
||||
return() # This component is not supported by the POSIX/Linux simulator
|
||||
endif()
|
||||
|
||||
set(srcs)
|
||||
|
||||
if(CONFIG_ESP_CONSOLE_USB_CDC)
|
||||
|
||||
Reference in New Issue
Block a user