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

* Added condition to only use tinyusb as needed

* Removed esp32c3 from targets supporting tinyusb
This commit is contained in:
Aron Rubin 2021-05-18 06:49:32 -04:00 committed by GitHub
parent 7a53c2d371
commit 5bfbcfc91c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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