Unverified Commit 5bfbcfc9 authored by Aron Rubin's avatar Aron Rubin Committed by GitHub

Added condition to only use tinyusb as needed (#5123)

* Added condition to only use tinyusb as needed

* Removed esp32c3 from targets supporting tinyusb
parent 7a53c2d3
......@@ -161,8 +161,11 @@ set(includedirs
set(srcs ${CORE_SRCS} ${LIBRARY_SRCS} ${BLE_SRCS})
set(priv_includes cores/esp32/libb64)
set(requires spi_flash mbedtls mdns esp_adc_cal)
set(priv_requires fatfs nvs_flash app_update spiffs bootloader_support openssl bt arduino_tinyusb main)
set(priv_requires fatfs nvs_flash app_update spiffs bootloader_support openssl bt main)
if(IDF_TARGET MATCHES "esp32s2|esp32s3" AND CONFIG_TINYUSB_ENABLED)
list(APPEND priv_requires arduino_tinyusb)
endif()
if(NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_ArduinoOTA)
list(APPEND priv_requires esp_https_ota)
endif()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment