diff options
Diffstat (limited to 'ports/esp32/main/CMakeLists.txt')
| -rw-r--r-- | ports/esp32/main/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ports/esp32/main/CMakeLists.txt b/ports/esp32/main/CMakeLists.txt index aacdd40d3..63a221e4d 100644 --- a/ports/esp32/main/CMakeLists.txt +++ b/ports/esp32/main/CMakeLists.txt @@ -84,7 +84,6 @@ set(IDF_COMPONENTS bootloader_support bt driver - esp32 esp_common esp_eth esp_event @@ -123,6 +122,12 @@ if(IDF_VERSION_MINOR GREATER_EQUAL 3) list(APPEND IDF_COMPONENTS hal) endif() +if(IDF_TARGET STREQUAL "esp32") + list(APPEND IDF_COMPONENTS esp32) +elseif(IDF_TARGET STREQUAL "esp32s2") + list(APPEND IDF_COMPONENTS esp32s2) +endif() + # Register the main IDF component. idf_component_register( SRCS |
