esp32: Don't add TinyUSB files to an ECHO_SUBMODULES build.
Similar to other places, CMake will error out if this file doesn't exist yet but we don't want this if we're only getting the list of submodules. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
This commit is contained in:
committed by
Angus Gratton
parent
ec527a1113
commit
43e3ab6131
@@ -60,7 +60,7 @@ list(APPEND MICROPY_SOURCE_DRIVERS
|
||||
)
|
||||
|
||||
string(CONCAT GIT_SUBMODULES "${GIT_SUBMODULES} " lib/tinyusb)
|
||||
if(MICROPY_PY_TINYUSB)
|
||||
if(MICROPY_PY_TINYUSB AND NOT ECHO_SUBMODULES)
|
||||
set(TINYUSB_SRC "${MICROPY_DIR}/lib/tinyusb/src")
|
||||
string(TOUPPER OPT_MCU_${IDF_TARGET} tusb_mcu)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user