소스 검색

esp32c3: Disable components that are not yet supported

Marius Vikhammer 5 년 전
부모
커밋
0301c66bf0
3개의 변경된 파일18개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      components/esp_wifi/CMakeLists.txt
  2. 5 0
      components/freemodbus/CMakeLists.txt
  3. 5 0
      components/perfmon/CMakeLists.txt

+ 8 - 0
components/esp_wifi/CMakeLists.txt

@@ -8,6 +8,14 @@ if(${idf_target} STREQUAL "esp32s3")
     return()
 endif()
 
+# remove these when wifi support is ready on esp32-c3
+if(${idf_target} STREQUAL "esp32c3")
+    idf_component_register(INCLUDE_DIRS "include"
+                           REQUIRES esp_event
+                           PRIV_REQUIRES wpa_supplicant nvs_flash esp_netif)
+    return()
+endif()
+
 if(CONFIG_ESP32_NO_BLOBS OR CONFIG_ESP32S2_NO_BLOBS)
     set(link_binary_libs 0)
     set(ldfragments)

+ 5 - 0
components/freemodbus/CMakeLists.txt

@@ -1,3 +1,8 @@
+idf_build_get_property(target IDF_TARGET)
+if(${target} STREQUAL "esp32c3")
+            return()  # TODO ESP32-C3 IDF-2173
+endif()
+
 # The following five lines of boilerplate have to be in your project's
 # CMakeLists in this exact order for cmake to work correctly
 set(srcs

+ 5 - 0
components/perfmon/CMakeLists.txt

@@ -1,3 +1,8 @@
+idf_build_get_property(target IDF_TARGET)
+if(${target} STREQUAL "esp32c3")
+        return()
+endif()
+
 set(xtensa_perfmon_srcs "xtensa_perfmon_access.c"
                         "xtensa_perfmon_apis.c"
                         "xtensa_perfmon_masks.c")