fix(linux): Exclude CDC ROM console and USJ driver from linux target

This commit is contained in:
Tomas Rezucha
2026-08-21 14:57:00 +02:00
committed by BOT
parent 1bbd9ee09a
commit b64a951f1e
2 changed files with 9 additions and 7 deletions

View File

@@ -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"
)

View File

@@ -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)