Skip to content

Commit

Permalink
esp32/boards: Only include tinyusb idf component if USB_ENABLED.
Browse files Browse the repository at this point in the history
Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
  • Loading branch information
BradenM committed May 24, 2021
1 parent 30f7582 commit af1a27d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ports/esp32/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ if(IDF_TARGET STREQUAL "esp32")
list(APPEND IDF_COMPONENTS esp32)
elseif(IDF_TARGET STREQUAL "esp32s2")
list(APPEND IDF_COMPONENTS esp32s2)
list(APPEND IDF_COMPONENTS tinyusb)
if(USB_ENABLED)
list(APPEND IDF_COMPONENTS tinyusb)
endif()
elseif(IDF_TARGET STREQUAL "esp32s3")
list(APPEND IDF_COMPONENTS esp32s3)
list(APPEND IDF_COMPONENTS tinyusb)
Expand Down

0 comments on commit af1a27d

Please sign in to comment.