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)