Build tinyusb lib only when it's explicitly enabled

Resolve #474
This commit is contained in:
valeros
2021-01-25 22:52:15 +02:00
parent ab8749063c
commit 14e3f31d2c
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1281,7 +1281,7 @@ env.Prepend(
# in File-API hence it's not present in components map. As a workaround we can build
# the lib using project build environment with additional flags from CMakeLists.txt
if (
idf_variant.startswith("esp32s2")
sdk_config.get("USB_ENABLED", False)
and "__idf_tinyusb" not in framework_components_map
):
build_tinyusb_lib(env)
+2 -2
View File
@@ -21,5 +21,5 @@ board = nano32
[env:espea32]
board = espea32
[env:esp320]
board = esp320
[env:esp32-s2-saola-1]
board = esp32-s2-saola-1