Jelajahi Sumber

Merge branch 'ci/support_build_helloworld_esp32s2beta' into 'feature/esp32s2beta'

ci: support to build esp32s2beta simple examples

See merge request espressif/esp-idf!5383
Angus Gratton 6 tahun lalu
induk
melakukan
0f147e0a32
100 mengubah file dengan 167 tambahan dan 39 penghapusan
  1. 45 18
      .gitlab-ci.yml
  2. 1 1
      components/bootloader_support/src/esp32s2beta/bootloader_clock_esp32s2beta.c
  3. 1 1
      components/esp32s2beta/brownout.c
  4. 1 1
      components/esp32s2beta/cache_err_int.c
  5. 1 1
      components/esp32s2beta/cpu_start.c
  6. 1 1
      components/esp32s2beta/crosscore_int.c
  7. 1 1
      components/esp32s2beta/dport_access.c
  8. 14 0
      components/esp32s2beta/ld/esp32s2beta.ld
  9. 1 1
      components/esp32s2beta/system_api.c
  10. 8 10
      components/esp_wifi/src/fast_crypto_ops.c
  11. 2 1
      components/esp_wifi/src/phy_init.c
  12. 2 2
      components/soc/esp32s2beta/rtc_init.c
  13. 1 1
      components/soc/esp32s2beta/soc_memory_layout.c
  14. 1 0
      examples/bluetooth/a2dp_gatts_coex/CMakeLists.txt
  15. 1 0
      examples/bluetooth/a2dp_sink/CMakeLists.txt
  16. 1 0
      examples/bluetooth/a2dp_source/CMakeLists.txt
  17. 1 0
      examples/bluetooth/ble_adv/CMakeLists.txt
  18. 1 0
      examples/bluetooth/ble_compatibility_test/CMakeLists.txt
  19. 1 0
      examples/bluetooth/ble_eddystone/CMakeLists.txt
  20. 1 0
      examples/bluetooth/ble_hid_device_demo/CMakeLists.txt
  21. 1 0
      examples/bluetooth/ble_ibeacon/CMakeLists.txt
  22. 1 0
      examples/bluetooth/ble_spp_client/CMakeLists.txt
  23. 1 0
      examples/bluetooth/ble_spp_server/CMakeLists.txt
  24. 1 0
      examples/bluetooth/ble_throughput/throughput_client/CMakeLists.txt
  25. 1 0
      examples/bluetooth/ble_throughput/throughput_server/CMakeLists.txt
  26. 1 0
      examples/bluetooth/blufi/CMakeLists.txt
  27. 1 0
      examples/bluetooth/bt_discovery/CMakeLists.txt
  28. 1 0
      examples/bluetooth/bt_spp_acceptor/CMakeLists.txt
  29. 1 0
      examples/bluetooth/bt_spp_initiator/CMakeLists.txt
  30. 1 0
      examples/bluetooth/bt_spp_vfs_acceptor/CMakeLists.txt
  31. 1 0
      examples/bluetooth/bt_spp_vfs_initiator/CMakeLists.txt
  32. 1 0
      examples/bluetooth/controller_hci_uart/CMakeLists.txt
  33. 1 0
      examples/bluetooth/gatt_client/CMakeLists.txt
  34. 1 0
      examples/bluetooth/gatt_security_client/CMakeLists.txt
  35. 1 0
      examples/bluetooth/gatt_security_server/CMakeLists.txt
  36. 1 0
      examples/bluetooth/gatt_server/CMakeLists.txt
  37. 1 0
      examples/bluetooth/gatt_server_service_table/CMakeLists.txt
  38. 1 0
      examples/bluetooth/gattc_multi_connect/CMakeLists.txt
  39. 2 0
      examples/build_system/cmake/idf_as_lib/CMakeLists.txt
  40. 1 0
      examples/ethernet/ethernet/CMakeLists.txt
  41. 1 0
      examples/ethernet/iperf/CMakeLists.txt
  42. 1 0
      examples/peripherals/adc/CMakeLists.txt
  43. 1 0
      examples/peripherals/adc2/CMakeLists.txt
  44. 1 0
      examples/peripherals/can/can_alert_and_recovery/CMakeLists.txt
  45. 1 0
      examples/peripherals/can/can_network/can_network_listen_only/CMakeLists.txt
  46. 1 0
      examples/peripherals/can/can_network/can_network_master/CMakeLists.txt
  47. 1 0
      examples/peripherals/can/can_network/can_network_slave/CMakeLists.txt
  48. 1 0
      examples/peripherals/can/can_self_test/CMakeLists.txt
  49. 1 0
      examples/peripherals/i2c/i2c_tools/CMakeLists.txt
  50. 1 0
      examples/peripherals/i2s/CMakeLists.txt
  51. 1 0
      examples/peripherals/i2s_adc_dac/CMakeLists.txt
  52. 1 0
      examples/peripherals/mcpwm/mcpwm_basic_config/CMakeLists.txt
  53. 1 0
      examples/peripherals/mcpwm/mcpwm_bldc_control/CMakeLists.txt
  54. 1 0
      examples/peripherals/mcpwm/mcpwm_brushed_dc_control/CMakeLists.txt
  55. 1 0
      examples/peripherals/mcpwm/mcpwm_servo_control/CMakeLists.txt
  56. 1 0
      examples/peripherals/pcnt/CMakeLists.txt
  57. 1 0
      examples/peripherals/sdio/host/CMakeLists.txt
  58. 1 0
      examples/peripherals/sdio/slave/CMakeLists.txt
  59. 1 0
      examples/peripherals/timer_group/CMakeLists.txt
  60. 1 0
      examples/protocols/asio/chat_client/CMakeLists.txt
  61. 1 0
      examples/protocols/asio/chat_server/CMakeLists.txt
  62. 1 0
      examples/protocols/asio/tcp_echo_server/CMakeLists.txt
  63. 1 0
      examples/protocols/asio/udp_echo_server/CMakeLists.txt
  64. 1 0
      examples/protocols/esp_http_client/CMakeLists.txt
  65. 1 0
      examples/protocols/http2_request/CMakeLists.txt
  66. 1 0
      examples/protocols/http_server/advanced_tests/CMakeLists.txt
  67. 1 0
      examples/protocols/http_server/persistent_sockets/CMakeLists.txt
  68. 1 0
      examples/protocols/http_server/simple/CMakeLists.txt
  69. 1 0
      examples/protocols/https_mbedtls/CMakeLists.txt
  70. 1 0
      examples/protocols/https_request/CMakeLists.txt
  71. 1 0
      examples/protocols/https_server/CMakeLists.txt
  72. 1 0
      examples/protocols/modbus_master/CMakeLists.txt
  73. 1 0
      examples/protocols/mqtt/publish_test/CMakeLists.txt
  74. 1 0
      examples/protocols/mqtt/ssl/CMakeLists.txt
  75. 1 0
      examples/protocols/mqtt/ssl_mutual_auth/CMakeLists.txt
  76. 1 0
      examples/protocols/mqtt/tcp/CMakeLists.txt
  77. 1 0
      examples/protocols/mqtt/ws/CMakeLists.txt
  78. 1 0
      examples/protocols/mqtt/wss/CMakeLists.txt
  79. 1 0
      examples/protocols/openssl_client/CMakeLists.txt
  80. 1 0
      examples/protocols/openssl_server/CMakeLists.txt
  81. 1 0
      examples/protocols/pppos_client/CMakeLists.txt
  82. 1 0
      examples/protocols/sntp/CMakeLists.txt
  83. 1 0
      examples/provisioning/ble_prov/CMakeLists.txt
  84. 1 0
      examples/provisioning/console_prov/CMakeLists.txt
  85. 1 0
      examples/provisioning/custom_config/CMakeLists.txt
  86. 1 0
      examples/provisioning/manager/CMakeLists.txt
  87. 1 0
      examples/provisioning/softap_prov/CMakeLists.txt
  88. 1 0
      examples/storage/sd_card/CMakeLists.txt
  89. 1 0
      examples/system/app_trace_to_host/CMakeLists.txt
  90. 1 0
      examples/system/console/CMakeLists.txt
  91. 1 0
      examples/system/deep_sleep/CMakeLists.txt
  92. 1 0
      examples/system/esp_timer/CMakeLists.txt
  93. 1 0
      examples/system/gcov/CMakeLists.txt
  94. 1 0
      examples/system/himem/CMakeLists.txt
  95. 1 0
      examples/system/light_sleep/CMakeLists.txt
  96. 1 0
      examples/system/ota/advanced_https_ota/CMakeLists.txt
  97. 1 0
      examples/system/ota/native_ota_example/CMakeLists.txt
  98. 1 0
      examples/system/ota/simple_ota_example/CMakeLists.txt
  99. 1 0
      examples/system/sysview_tracing/CMakeLists.txt
  100. 1 0
      examples/system/sysview_tracing_heap_log/CMakeLists.txt

+ 45 - 18
.gitlab-ci.yml

@@ -302,16 +302,14 @@ build_esp_idf_tests_cmake:
   artifacts:
     when: always
     paths:
-      - build_examples_cmake/*/*/*/build/*.bin
-      - build_examples_cmake/*/*/*/sdkconfig
-      - build_examples_cmake/*/*/*/build/*.elf
-      - build_examples_cmake/*/*/*/build/*.map
-      - build_examples_cmake/*/*/*/build/flasher_args.json
-      - build_examples_cmake/*/*/*/build/bootloader/*.bin
+      - build_examples_cmake/*/*/*/*/build/*.bin
+      - build_examples_cmake/*/*/*/*/sdkconfig
+      - build_examples_cmake/*/*/*/*/build/*.elf
+      - build_examples_cmake/*/*/*/*/build/*.map
+      - build_examples_cmake/*/*/*/*/build/flasher_args.json
+      - build_examples_cmake/*/*/*/*/build/bootloader/*.bin
       - $LOG_PATH
     expire_in: 2 days
-  variables:
-    LOG_PATH: "$CI_PROJECT_DIR/log_examples_cmake"
   only:
     variables:
       - $BOT_TRIGGER_WITH_LABEL == null
@@ -329,6 +327,18 @@ build_esp_idf_tests_cmake:
     - mkdir -p ${LOG_PATH}
     - ${IDF_PATH}/tools/ci/build_examples_cmake.sh "${CI_JOB_NAME}"
 
+.build_examples_cmake_esp32_template: &build_examples_cmake_esp32_template
+  <<: *build_examples_cmake_template
+  variables:
+    LOG_PATH: "$CI_PROJECT_DIR/log_examples_cmake"
+    IDF_TARGET: "esp32"
+
+.build_examples_cmake_esp32s2_template: &build_examples_cmake_esp32s2_template
+  <<: *build_examples_cmake_template
+  variables:
+    LOG_PATH: "$CI_PROJECT_DIR/log_examples_cmake"
+    IDF_TARGET: "esp32s2beta"
+
 build_examples_make_00:
   <<: *build_examples_make_template
 
@@ -354,28 +364,41 @@ build_examples_make_07:
   <<: *build_examples_make_template
 
 build_examples_cmake_00:
-  <<: *build_examples_cmake_template
+  <<: *build_examples_cmake_esp32_template
 
 build_examples_cmake_01:
-  <<: *build_examples_cmake_template
+  <<: *build_examples_cmake_esp32_template
 
 build_examples_cmake_02:
-  <<: *build_examples_cmake_template
+  <<: *build_examples_cmake_esp32_template
 
 build_examples_cmake_03:
-  <<: *build_examples_cmake_template
+  <<: *build_examples_cmake_esp32_template
 
 build_examples_cmake_04:
-  <<: *build_examples_cmake_template
+  <<: *build_examples_cmake_esp32_template
 
 build_examples_cmake_05:
-  <<: *build_examples_cmake_template
+  <<: *build_examples_cmake_esp32_template
 
 build_examples_cmake_06:
-  <<: *build_examples_cmake_template
+  <<: *build_examples_cmake_esp32_template
 
 build_examples_cmake_07:
-  <<: *build_examples_cmake_template
+  <<: *build_examples_cmake_esp32_template
+
+build_examples_cmake_s2_00:
+  <<: *build_examples_cmake_esp32s2_template
+
+build_examples_cmake_s2_01:
+  <<: *build_examples_cmake_esp32s2_template
+
+build_examples_cmake_s2_02:
+  <<: *build_examples_cmake_esp32s2_template
+
+build_examples_cmake_s2_03:
+  <<: *build_examples_cmake_esp32s2_template
+
 
 # If you want to add new build example jobs, please add it into dependencies of `.example_test_template`
 
@@ -691,6 +714,7 @@ push_to_github:
     - deploy
   only:
     - master
+    - feature/esp32s2beta
     - /^release\/v/
     - /^v\d+\.\d+(\.\d+)?($|-)/
   when: on_success
@@ -935,8 +959,7 @@ check_submodule_sync:
   script:
     # check if all submodules are correctly synced to public repostory
     # disable this test temporarily because the esptool branch is on gitlab
-    # TODO: revert it before release esp32s2
-    # - git submodule update --init --recursive
+    - git submodule update --init --recursive
     - git submodule
 
 check_artifacts_expire_time:
@@ -1027,6 +1050,10 @@ assign_test:
     - build_examples_cmake_05
     - build_examples_cmake_06
     - build_examples_cmake_07
+    - build_examples_cmake_s2_00
+    - build_examples_cmake_s2_01
+    - build_examples_cmake_s2_02
+    - build_examples_cmake_s2_03
   artifacts:
     when: always
     paths:

+ 1 - 1
components/bootloader_support/src/esp32s2beta/bootloader_clock_esp32s2beta.c

@@ -3,7 +3,7 @@
 
 int bootloader_clock_get_rated_freq_mhz()
 {
-    #warning "TODO: bootloader_clock_get_rated_freq_mhz implementation in esp32s2"
+// TODO: implement bootloader_clock_get_rated_freq_mhz for esp32s2beta - IDF-758
     return 999;
 }
 

+ 1 - 1
components/esp32s2beta/brownout.c

@@ -48,7 +48,7 @@ static void rtc_brownout_isr_handler()
 
 void esp_brownout_init()
 {
-#warning "TODO: implement brownout threshold configuration for esp32s2beta"
+// TODO: implement brownout threshold configuration for esp32s2beta - IDF-751
 
     ESP_ERROR_CHECK( rtc_isr_register(rtc_brownout_isr_handler, NULL, RTC_CNTL_BROWN_OUT_INT_ENA_M) );
 

+ 1 - 1
components/esp32s2beta/cache_err_int.c

@@ -52,7 +52,7 @@ void esp_cache_err_int_init()
     // interrupt is connected to PRO CPU and invalid access happens on the APP
     // CPU.
 
-#warning "TODO: implement cache error access interrupt for esp32s2beta"
+// TODO: implement cache error access interrupt for esp32s2beta - IDF-752
 #if 0
     DPORT_SET_PERI_REG_MASK(DPORT_PRO_CACHE_IA_INT_EN_REG,
         DPORT_CACHE_IA_INT_PRO_DRAM1 |

+ 1 - 1
components/esp32s2beta/cpu_start.c

@@ -499,7 +499,7 @@ static void main_task(void* args)
 #endif
 
     //Add IDLE 0 to task wdt
-#warning "cpu_start.c: TODO: re-enable task WDT"
+// TODO: cpu_start.c: re-enable task WDT - IDF-753
 #if 0
 #ifdef CONFIG_ESP_TASK_WDT_CHECK_IDLE_TASK_CPU0
     TaskHandle_t idle_0 = xTaskGetIdleTaskHandleForCPU(0);

+ 1 - 1
components/esp32s2beta/crosscore_int.c

@@ -40,7 +40,7 @@
 static portMUX_TYPE reason_spinlock = portMUX_INITIALIZER_UNLOCKED;
 static volatile uint32_t reason[ portNUM_PROCESSORS ];
 
-#warning "crosscore_int: TODO: simplify for esp32s2beta"
+// TODO: crosscore_int: simplify for esp32s2beta - IDF-754
 
 /*
 ToDo: There is a small chance the CPU already has yielded when this ISR is serviced. In that case, it's running the intended task but

+ 1 - 1
components/esp32s2beta/dport_access.c

@@ -41,7 +41,7 @@
 
 #include "xtensa/core-macros.h"
 
-#warning "dport_access: TODO: simplify for esp32s2beta"
+// TODO: dport_access: simplify for esp32s2beta - IDF-755
 
 #ifndef CONFIG_FREERTOS_UNICORE
 static portMUX_TYPE g_dport_mux = portMUX_INITIALIZER_UNLOCKED;

+ 14 - 0
components/esp32s2beta/ld/esp32s2beta.ld

@@ -68,6 +68,10 @@ MEMORY
   */
   rtc_slow_seg(RW)  :                org = 0x50000000 + CONFIG_ESP32S2_ULP_COPROC_RESERVE_MEM,
                                      len = 0x1000 - CONFIG_ESP32S2_ULP_COPROC_RESERVE_MEM
+
+  /* RTC fast memory (same block as above), viewed from data bus
+   * TODO: check whether rtc_data_seg address is correct - IDF-760 */
+  rtc_data_seg(RW) :                 org = 0x3ff9e000, len = 0
 }
 
 _static_data_end = _bss_end;
@@ -76,3 +80,13 @@ _static_data_end = _bss_end;
 _heap_end = 0x40000000 - CONFIG_ESP32S2_TRACEMEM_RESERVE_DRAM;
 
 _data_seg_org = ORIGIN(rtc_data_seg);
+
+/* The lines below define location alias for .rtc.data section based on Kconfig option.
+   When the option is not defined then use slow memory segment
+   else the data will be placed in fast memory segment
+   TODO: check whether the rtc_data_location is correct for esp32s2beta - IDF-761 */
+#ifndef CONFIG_ESP32_RTCDATA_IN_FAST_MEM
+REGION_ALIAS("rtc_data_location", rtc_slow_seg );
+#else
+REGION_ALIAS("rtc_data_location", rtc_data_seg );
+#endif

+ 1 - 1
components/esp32s2beta/system_api.c

@@ -81,7 +81,7 @@ esp_err_t esp_efuse_mac_get_custom(uint8_t *mac)
 
 esp_err_t esp_efuse_mac_get_default(uint8_t* mac)
 {
-#warning "esp_efuse_mac_get_default: not implemented for esp32s2beta"
+// TODO: implememt esp_efuse_mac_get_default for esp32s2beta - IDF-756
     uint32_t mac_low;
     uint32_t mac_high;
     // uint8_t efuse_crc;

+ 8 - 10
components/esp_wifi/src/fast_crypto_ops.c

@@ -29,19 +29,17 @@
 #include "wpa2/eap_peer/eap_common.h"
 #include "esp_wifi_crypto_types.h"
 
-#if CONFIG_IDF_TARGET_ESP32S2BETA
-#warning "TODO: fix hardware crypto support for esp32s2beta"
-#endif
+// TODO: fix hardware crypto support for esp32s2beta - IDF-757
 
-/* 
+/*
  * The parameters is used to set the cyrpto callback function for station connect when in security mode,
- * every callback function can register as fast_xxx or normal one, i.e, fast_aes_wrap or aes_wrap, the 
- * difference between them is the normal API is calculate by software, the fast one use the hardware 
+ * every callback function can register as fast_xxx or normal one, i.e, fast_aes_wrap or aes_wrap, the
+ * difference between them is the normal API is calculate by software, the fast one use the hardware
  * crypto in it, can be faster than the normal one, so the callback function register in default is which
  * we recommend, so as the API in WPS default and WPA2 default.
  */
 const wpa_crypto_funcs_t g_wifi_default_wpa_crypto_funcs = {
-    .size = sizeof(wpa_crypto_funcs_t), 
+    .size = sizeof(wpa_crypto_funcs_t),
     .version = ESP_WIFI_CRYPTO_VERSION,
 #if CONFIG_IDF_TARGET_ESP32
     .aes_wrap = (esp_aes_wrap_t)fast_aes_wrap,
@@ -72,7 +70,7 @@ const wpa_crypto_funcs_t g_wifi_default_wpa_crypto_funcs = {
 };
 
 const wps_crypto_funcs_t g_wifi_default_wps_crypto_funcs = {
-    .size = sizeof(wps_crypto_funcs_t), 
+    .size = sizeof(wps_crypto_funcs_t),
     .version = ESP_WIFI_CRYPTO_VERSION,
 #if CONFIG_IDF_TARGET_ESP32
     .aes_128_encrypt = (esp_aes_128_encrypt_t)fast_aes_128_cbc_encrypt,
@@ -105,8 +103,8 @@ const wps_crypto_funcs_t g_wifi_default_wps_crypto_funcs = {
 
 /*
  * What should notice is that the cyrpto hash type function and crypto cipher type function can not register
- * as different, i.e, if you use fast_crypto_hash_init, you should use fast_crypto_hash_update and 
- * fast_crypto_hash_finish for finish hash calculate, rather than call crypto_hash_update and 
+ * as different, i.e, if you use fast_crypto_hash_init, you should use fast_crypto_hash_update and
+ * fast_crypto_hash_finish for finish hash calculate, rather than call crypto_hash_update and
  * crypto_hash_finish, so do crypto_cipher.
  */
 const wpa2_crypto_funcs_t g_wifi_default_wpa2_crypto_funcs = {

+ 2 - 1
components/esp_wifi/src/phy_init.c

@@ -596,7 +596,8 @@ static esp_err_t store_cal_data_to_nvs_handle(nvs_handle_t handle,
 }
 
 #if CONFIG_ESP32_REDUCE_PHY_TX_POWER
-static void esp_phy_reduce_tx_power(esp_phy_init_data_t* init_data)
+// TODO: fix the esp_phy_reduce_tx_power unused warning for esp32s2beta - IDF-759
+static void __attribute((unused)) esp_phy_reduce_tx_power(esp_phy_init_data_t* init_data)
 {
     uint8_t i;
 

+ 2 - 2
components/soc/esp32s2beta/rtc_init.c

@@ -125,7 +125,7 @@ void rtc_init(rtc_config_t cfg)
             CLEAR_PERI_REG_MASK(RTC_CNTL_OPTIONS0_REG, RTC_CNTL_BB_I2C_FORCE_PU);
         } else {
             SET_PERI_REG_MASK(RTC_CNTL_OPTIONS0_REG, RTC_CNTL_BBPLL_FORCE_PU);
-            SET_PERI_REG_MASK(RTC_CNTL_OPTIONS0_REG, RTC_CNTL_BBPLL_I2C_FORCE_PU);  
+            SET_PERI_REG_MASK(RTC_CNTL_OPTIONS0_REG, RTC_CNTL_BBPLL_I2C_FORCE_PU);
             SET_PERI_REG_MASK(RTC_CNTL_OPTIONS0_REG, RTC_CNTL_BB_I2C_FORCE_PU);
         }
         //cancel RTC REG force PU
@@ -198,7 +198,7 @@ rtc_vddsdio_config_t rtc_vddsdio_get_config()
         result.tieh = (sdio_conf_reg & RTC_CNTL_SDIO_TIEH_M) >> RTC_CNTL_SDIO_TIEH_S;
         return result;
     }
-#warning "rtc_vddsdio_get_config: efuse part not implemented for esp32s2beta"
+// TODO: rtc_vddsdio_get_config: implement efuse part for esp32s2beta - IDF-749
 #if 0
     uint32_t efuse_reg = REG_READ(EFUSE_BLK0_RDATA4_REG);
     if (efuse_reg & EFUSE_RD_SDIO_FORCE) {

+ 1 - 1
components/soc/esp32s2beta/soc_memory_layout.c

@@ -127,7 +127,7 @@ SOC_RESERVE_MEMORY_REGION(0x3ffb8000, 0x3FFD0000, dram_mapped_to_iram);
 //ROM data region
 SOC_RESERVE_MEMORY_REGION(0x3fff8000, (intptr_t)&_data_start_xtos, rom_data_region);
 
-#warning "soc_memory_layout: trace memory regions not handled"
+// TODO: soc_memory_layout: handle trace memory regions - IDF-750
 
 #ifdef CONFIG_SPIRAM
 SOC_RESERVE_MEMORY_REGION( SOC_EXTRAM_DATA_LOW, SOC_EXTRAM_DATA_HIGH, extram_data_region); //SPI RAM gets added later if needed, in spiram.c; reserve it for now

+ 1 - 0
examples/bluetooth/a2dp_gatts_coex/CMakeLists.txt

@@ -2,5 +2,6 @@
 # CMakeLists in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(bt_ble_coex)

+ 1 - 0
examples/bluetooth/a2dp_sink/CMakeLists.txt

@@ -2,5 +2,6 @@
 # CMakeLists in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(a2dp_sink)

+ 1 - 0
examples/bluetooth/a2dp_source/CMakeLists.txt

@@ -2,5 +2,6 @@
 # CMakeLists in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(a2dp_source)

+ 1 - 0
examples/bluetooth/ble_adv/CMakeLists.txt

@@ -2,5 +2,6 @@
 # CMakeLists in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(ble_adv)

+ 1 - 0
examples/bluetooth/ble_compatibility_test/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(ble_compatibility_test)

+ 1 - 0
examples/bluetooth/ble_eddystone/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(ble_eddystone_demo)

+ 1 - 0
examples/bluetooth/ble_hid_device_demo/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(hidd_demos)

+ 1 - 0
examples/bluetooth/ble_ibeacon/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(ble_ibeacon_demo)

+ 1 - 0
examples/bluetooth/ble_spp_client/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(spp_client_demo)

+ 1 - 0
examples/bluetooth/ble_spp_server/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(ble_spp_server_demo)

+ 1 - 0
examples/bluetooth/ble_throughput/throughput_client/CMakeLists.txt

@@ -2,5 +2,6 @@
 # CMakeLists in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(throughput_client_demo)

+ 1 - 0
examples/bluetooth/ble_throughput/throughput_server/CMakeLists.txt

@@ -2,5 +2,6 @@
 # CMakeLists in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(throughput_server_demo)

+ 1 - 0
examples/bluetooth/blufi/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(blufi_demo)

+ 1 - 0
examples/bluetooth/bt_discovery/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(bt_discovery)

+ 1 - 0
examples/bluetooth/bt_spp_acceptor/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(bt_spp_acceptor_demo)

+ 1 - 0
examples/bluetooth/bt_spp_initiator/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(bt_spp_initiator_demo)

+ 1 - 0
examples/bluetooth/bt_spp_vfs_acceptor/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(bt_spp_vfs_acceptor_demo)

+ 1 - 0
examples/bluetooth/bt_spp_vfs_initiator/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(bt_spp_vfs_initiator_demo)

+ 1 - 0
examples/bluetooth/controller_hci_uart/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(controller_hci_uart)

+ 1 - 0
examples/bluetooth/gatt_client/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(gatt_client_demo)

+ 1 - 0
examples/bluetooth/gatt_security_client/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(sec_gattc_demo)

+ 1 - 0
examples/bluetooth/gatt_security_server/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(sec_gatts_demo)

+ 1 - 0
examples/bluetooth/gatt_server/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(gatt_server_demos)

+ 1 - 0
examples/bluetooth/gatt_server_service_table/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(gatt_server_service_table_demo)

+ 1 - 0
examples/bluetooth/gattc_multi_connect/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(gatt_multi_connect)

+ 2 - 0
examples/build_system/cmake/idf_as_lib/CMakeLists.txt

@@ -1,6 +1,8 @@
 cmake_minimum_required(VERSION 3.5)
+
 project(idf_as_lib C)
 
+set(SUPPORTED_TARGETS esp32)
 if("${TARGET}" STREQUAL "esp32")
     # Include for ESP-IDF build system functions
     include($ENV{IDF_PATH}/tools/cmake/idf.cmake)

+ 1 - 0
examples/ethernet/ethernet/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(ethernet_demo)

+ 1 - 0
examples/ethernet/iperf/CMakeLists.txt

@@ -5,5 +5,6 @@ cmake_minimum_required(VERSION 3.5)
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/system/console/components
                          $ENV{IDF_PATH}/examples/wifi/iperf/components)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(ethernet-iperf)

+ 1 - 0
examples/peripherals/adc/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(adc)

+ 1 - 0
examples/peripherals/adc2/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(adc2)

+ 1 - 0
examples/peripherals/can/can_alert_and_recovery/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(can_alert_and_recovery_example)

+ 1 - 0
examples/peripherals/can/can_network/can_network_listen_only/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(can_network_listen_only)

+ 1 - 0
examples/peripherals/can/can_network/can_network_master/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(can_network_master)

+ 1 - 0
examples/peripherals/can/can_network/can_network_slave/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(can_network_slave)

+ 1 - 0
examples/peripherals/can/can_self_test/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(can_self_test_example)

+ 1 - 0
examples/peripherals/i2c/i2c_tools/CMakeLists.txt

@@ -4,5 +4,6 @@ cmake_minimum_required(VERSION 3.5)
 
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/system/console/components)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(i2c-tools)

+ 1 - 0
examples/peripherals/i2s/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(esp32-i2s-driver-example)

+ 1 - 0
examples/peripherals/i2s_adc_dac/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(i2s-adc-dac)

+ 1 - 0
examples/peripherals/mcpwm/mcpwm_basic_config/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(mcpwm_basic_config)

+ 1 - 0
examples/peripherals/mcpwm/mcpwm_bldc_control/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(mcpwm_bldc_control_hall_sensor)

+ 1 - 0
examples/peripherals/mcpwm/mcpwm_brushed_dc_control/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(mcpwm_brushed_dc_control)

+ 1 - 0
examples/peripherals/mcpwm/mcpwm_servo_control/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(mcpwm_servo_control)

+ 1 - 0
examples/peripherals/pcnt/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(pcnt)

+ 1 - 0
examples/peripherals/sdio/host/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(sdio_host)

+ 1 - 0
examples/peripherals/sdio/slave/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(sdio_slave)

+ 1 - 0
examples/peripherals/timer_group/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(timer_group)

+ 1 - 0
examples/protocols/asio/chat_client/CMakeLists.txt

@@ -6,5 +6,6 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(asio_chat_client)

+ 1 - 0
examples/protocols/asio/chat_server/CMakeLists.txt

@@ -6,5 +6,6 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(asio_chat_server)

+ 1 - 0
examples/protocols/asio/tcp_echo_server/CMakeLists.txt

@@ -6,5 +6,6 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(asio_tcp_echo_server)

+ 1 - 0
examples/protocols/asio/udp_echo_server/CMakeLists.txt

@@ -6,5 +6,6 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(asio_udp_echo_server)

+ 1 - 0
examples/protocols/esp_http_client/CMakeLists.txt

@@ -6,5 +6,6 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(esp-http-client-example)

+ 1 - 0
examples/protocols/http2_request/CMakeLists.txt

@@ -6,5 +6,6 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(http2-request)

+ 1 - 0
examples/protocols/http_server/advanced_tests/CMakeLists.txt

@@ -6,5 +6,6 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(tests)

+ 1 - 0
examples/protocols/http_server/persistent_sockets/CMakeLists.txt

@@ -6,6 +6,7 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(persistent_sockets)
 

+ 1 - 0
examples/protocols/http_server/simple/CMakeLists.txt

@@ -6,5 +6,6 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(simple)

+ 1 - 0
examples/protocols/https_mbedtls/CMakeLists.txt

@@ -6,5 +6,6 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(https-mbedtls)

+ 1 - 0
examples/protocols/https_request/CMakeLists.txt

@@ -6,5 +6,6 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(https_request)

+ 1 - 0
examples/protocols/https_server/CMakeLists.txt

@@ -6,5 +6,6 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(https_server)

+ 1 - 0
examples/protocols/modbus_master/CMakeLists.txt

@@ -2,5 +2,6 @@
 # CMakeLists in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(modbus_master)

+ 1 - 0
examples/protocols/mqtt/publish_test/CMakeLists.txt

@@ -6,6 +6,7 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 
 project(mqtt_publish)

+ 1 - 0
examples/protocols/mqtt/ssl/CMakeLists.txt

@@ -6,6 +6,7 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(mqtt_ssl)
 

+ 1 - 0
examples/protocols/mqtt/ssl_mutual_auth/CMakeLists.txt

@@ -6,6 +6,7 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(mqtt_ssl_mutual_auth)
 

+ 1 - 0
examples/protocols/mqtt/tcp/CMakeLists.txt

@@ -6,5 +6,6 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(mqtt_tcp)

+ 1 - 0
examples/protocols/mqtt/ws/CMakeLists.txt

@@ -6,5 +6,6 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(mqtt_websocket)

+ 1 - 0
examples/protocols/mqtt/wss/CMakeLists.txt

@@ -6,6 +6,7 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(mqtt_websocket_secure)
 

+ 1 - 0
examples/protocols/openssl_client/CMakeLists.txt

@@ -6,5 +6,6 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(openssl_client)

+ 1 - 0
examples/protocols/openssl_server/CMakeLists.txt

@@ -6,5 +6,6 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(openssl_server)

+ 1 - 0
examples/protocols/pppos_client/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(pppos_client)

+ 1 - 0
examples/protocols/sntp/CMakeLists.txt

@@ -6,5 +6,6 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(sntp)

+ 1 - 0
examples/provisioning/ble_prov/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(ble_prov)

+ 1 - 0
examples/provisioning/console_prov/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(console_prov)

+ 1 - 0
examples/provisioning/custom_config/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(custom_config)

+ 1 - 0
examples/provisioning/manager/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(wifi_prov_mgr)

+ 1 - 0
examples/provisioning/softap_prov/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(softap_prov)

+ 1 - 0
examples/storage/sd_card/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(sd_card)

+ 1 - 0
examples/system/app_trace_to_host/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(app_trace_to_host)

+ 1 - 0
examples/system/console/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(console)

+ 1 - 0
examples/system/deep_sleep/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(deep_sleep)

+ 1 - 0
examples/system/esp_timer/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(esp_timer_example)

+ 1 - 0
examples/system/gcov/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(gcov_example)

+ 1 - 0
examples/system/himem/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(himem_test)

+ 1 - 0
examples/system/light_sleep/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(light_sleep_example)

+ 1 - 0
examples/system/ota/advanced_https_ota/CMakeLists.txt

@@ -6,5 +6,6 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(advanced_https_ota)

+ 1 - 0
examples/system/ota/native_ota_example/CMakeLists.txt

@@ -6,5 +6,6 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(native_ota)

+ 1 - 0
examples/system/ota/simple_ota_example/CMakeLists.txt

@@ -6,5 +6,6 @@ cmake_minimum_required(VERSION 3.5)
 # This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
 set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(simple_ota)

+ 1 - 0
examples/system/sysview_tracing/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(sysview_tracing)

+ 1 - 0
examples/system/sysview_tracing_heap_log/CMakeLists.txt

@@ -2,5 +2,6 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
+set(SUPPORTED_TARGETS esp32)
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(sysview_tracing_heap_log)

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini