From 25ab8380c86d0c9c2fb5c9d091a9af4b7f160ca1 Mon Sep 17 00:00:00 2001 From: "Michael (XIAO Xufeng)" Date: Mon, 8 Jul 2019 09:16:06 +0800 Subject: [PATCH] ci: support to build esp32s2beta simple examples --- .gitlab-ci.yml | 63 +++++++++++++------ .../bootloader_clock_esp32s2beta.c | 2 +- components/esp32s2beta/brownout.c | 2 +- components/esp32s2beta/cache_err_int.c | 2 +- components/esp32s2beta/cpu_start.c | 2 +- components/esp32s2beta/crosscore_int.c | 2 +- components/esp32s2beta/dport_access.c | 2 +- components/esp32s2beta/ld/esp32s2beta.ld | 14 +++++ components/esp32s2beta/system_api.c | 2 +- components/esp_wifi/src/fast_crypto_ops.c | 18 +++--- components/esp_wifi/src/phy_init.c | 3 +- components/soc/esp32s2beta/rtc_init.c | 4 +- .../soc/esp32s2beta/soc_memory_layout.c | 2 +- .../bluetooth/a2dp_gatts_coex/CMakeLists.txt | 1 + examples/bluetooth/a2dp_sink/CMakeLists.txt | 1 + examples/bluetooth/a2dp_source/CMakeLists.txt | 1 + examples/bluetooth/ble_adv/CMakeLists.txt | 1 + .../ble_compatibility_test/CMakeLists.txt | 1 + .../bluetooth/ble_eddystone/CMakeLists.txt | 1 + .../ble_hid_device_demo/CMakeLists.txt | 1 + examples/bluetooth/ble_ibeacon/CMakeLists.txt | 1 + .../bluetooth/ble_spp_client/CMakeLists.txt | 1 + .../bluetooth/ble_spp_server/CMakeLists.txt | 1 + .../throughput_client/CMakeLists.txt | 1 + .../throughput_server/CMakeLists.txt | 1 + examples/bluetooth/blufi/CMakeLists.txt | 1 + .../bluetooth/bt_discovery/CMakeLists.txt | 1 + .../bluetooth/bt_spp_acceptor/CMakeLists.txt | 1 + .../bluetooth/bt_spp_initiator/CMakeLists.txt | 1 + .../bt_spp_vfs_acceptor/CMakeLists.txt | 1 + .../bt_spp_vfs_initiator/CMakeLists.txt | 1 + .../controller_hci_uart/CMakeLists.txt | 1 + examples/bluetooth/gatt_client/CMakeLists.txt | 1 + .../gatt_security_client/CMakeLists.txt | 1 + .../gatt_security_server/CMakeLists.txt | 1 + examples/bluetooth/gatt_server/CMakeLists.txt | 1 + .../gatt_server_service_table/CMakeLists.txt | 1 + .../gattc_multi_connect/CMakeLists.txt | 1 + .../cmake/idf_as_lib/CMakeLists.txt | 2 + examples/ethernet/ethernet/CMakeLists.txt | 1 + examples/ethernet/iperf/CMakeLists.txt | 1 + examples/peripherals/adc/CMakeLists.txt | 1 + examples/peripherals/adc2/CMakeLists.txt | 1 + .../can/can_alert_and_recovery/CMakeLists.txt | 1 + .../can_network_listen_only/CMakeLists.txt | 1 + .../can_network_master/CMakeLists.txt | 1 + .../can_network_slave/CMakeLists.txt | 1 + .../can/can_self_test/CMakeLists.txt | 1 + .../peripherals/i2c/i2c_tools/CMakeLists.txt | 1 + examples/peripherals/i2s/CMakeLists.txt | 1 + .../peripherals/i2s_adc_dac/CMakeLists.txt | 1 + .../mcpwm/mcpwm_basic_config/CMakeLists.txt | 1 + .../mcpwm/mcpwm_bldc_control/CMakeLists.txt | 1 + .../mcpwm_brushed_dc_control/CMakeLists.txt | 1 + .../mcpwm/mcpwm_servo_control/CMakeLists.txt | 1 + examples/peripherals/pcnt/CMakeLists.txt | 1 + examples/peripherals/sdio/host/CMakeLists.txt | 1 + .../peripherals/sdio/slave/CMakeLists.txt | 1 + .../peripherals/timer_group/CMakeLists.txt | 1 + .../protocols/asio/chat_client/CMakeLists.txt | 1 + .../protocols/asio/chat_server/CMakeLists.txt | 1 + .../asio/tcp_echo_server/CMakeLists.txt | 1 + .../asio/udp_echo_server/CMakeLists.txt | 1 + .../protocols/esp_http_client/CMakeLists.txt | 1 + .../protocols/http2_request/CMakeLists.txt | 1 + .../http_server/advanced_tests/CMakeLists.txt | 1 + .../persistent_sockets/CMakeLists.txt | 1 + .../http_server/simple/CMakeLists.txt | 1 + .../protocols/https_mbedtls/CMakeLists.txt | 1 + .../protocols/https_request/CMakeLists.txt | 1 + .../protocols/https_server/CMakeLists.txt | 1 + .../protocols/modbus_master/CMakeLists.txt | 1 + .../mqtt/publish_test/CMakeLists.txt | 1 + examples/protocols/mqtt/ssl/CMakeLists.txt | 1 + .../mqtt/ssl_mutual_auth/CMakeLists.txt | 1 + examples/protocols/mqtt/tcp/CMakeLists.txt | 1 + examples/protocols/mqtt/ws/CMakeLists.txt | 1 + examples/protocols/mqtt/wss/CMakeLists.txt | 1 + .../protocols/openssl_client/CMakeLists.txt | 1 + .../protocols/openssl_server/CMakeLists.txt | 1 + .../protocols/pppos_client/CMakeLists.txt | 1 + examples/protocols/sntp/CMakeLists.txt | 1 + examples/provisioning/ble_prov/CMakeLists.txt | 1 + .../provisioning/console_prov/CMakeLists.txt | 1 + .../provisioning/custom_config/CMakeLists.txt | 1 + examples/provisioning/manager/CMakeLists.txt | 1 + .../provisioning/softap_prov/CMakeLists.txt | 1 + examples/storage/sd_card/CMakeLists.txt | 1 + .../system/app_trace_to_host/CMakeLists.txt | 1 + examples/system/console/CMakeLists.txt | 1 + examples/system/deep_sleep/CMakeLists.txt | 1 + examples/system/esp_timer/CMakeLists.txt | 1 + examples/system/gcov/CMakeLists.txt | 1 + examples/system/himem/CMakeLists.txt | 1 + examples/system/light_sleep/CMakeLists.txt | 1 + .../ota/advanced_https_ota/CMakeLists.txt | 1 + .../ota/native_ota_example/CMakeLists.txt | 1 + .../ota/simple_ota_example/CMakeLists.txt | 1 + .../system/sysview_tracing/CMakeLists.txt | 1 + .../sysview_tracing_heap_log/CMakeLists.txt | 1 + examples/system/ulp/CMakeLists.txt | 1 + examples/system/ulp_adc/CMakeLists.txt | 1 + examples/wifi/espnow/CMakeLists.txt | 1 + examples/wifi/iperf/CMakeLists.txt | 1 + examples/wifi/power_save/CMakeLists.txt | 1 + examples/wifi/simple_sniffer/CMakeLists.txt | 1 + tools/ci/build_examples_cmake.sh | 20 +++--- tools/ci/executable-list.txt | 1 + tools/ci/get_supported_examples.sh | 33 ++++++++++ tools/ci/mirror-list.txt | 1 + tools/test_idf_tools/test_idf_tools.py | 3 +- tools/tools.json | 56 +++++++++++++++++ 112 files changed, 278 insertions(+), 48 deletions(-) create mode 100755 tools/ci/get_supported_examples.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 30472d028..175f7b69b 100644 --- a/.gitlab-ci.yml +++ b/.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: diff --git a/components/bootloader_support/src/esp32s2beta/bootloader_clock_esp32s2beta.c b/components/bootloader_support/src/esp32s2beta/bootloader_clock_esp32s2beta.c index 68b9b7492..6a09987f2 100644 --- a/components/bootloader_support/src/esp32s2beta/bootloader_clock_esp32s2beta.c +++ b/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; } diff --git a/components/esp32s2beta/brownout.c b/components/esp32s2beta/brownout.c index 2a5c662e6..8b5ccdace 100644 --- a/components/esp32s2beta/brownout.c +++ b/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) ); diff --git a/components/esp32s2beta/cache_err_int.c b/components/esp32s2beta/cache_err_int.c index 015070eb2..516caf234 100644 --- a/components/esp32s2beta/cache_err_int.c +++ b/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 | diff --git a/components/esp32s2beta/cpu_start.c b/components/esp32s2beta/cpu_start.c index ea8a70915..0023276b0 100644 --- a/components/esp32s2beta/cpu_start.c +++ b/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); diff --git a/components/esp32s2beta/crosscore_int.c b/components/esp32s2beta/crosscore_int.c index 1aa25f6b5..66d6c4db9 100644 --- a/components/esp32s2beta/crosscore_int.c +++ b/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 diff --git a/components/esp32s2beta/dport_access.c b/components/esp32s2beta/dport_access.c index 82282e0f7..acb2ef693 100644 --- a/components/esp32s2beta/dport_access.c +++ b/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; diff --git a/components/esp32s2beta/ld/esp32s2beta.ld b/components/esp32s2beta/ld/esp32s2beta.ld index 8e6d9d5fd..2ddb072bc 100644 --- a/components/esp32s2beta/ld/esp32s2beta.ld +++ b/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 diff --git a/components/esp32s2beta/system_api.c b/components/esp32s2beta/system_api.c index e038d56a5..50469fd54 100644 --- a/components/esp32s2beta/system_api.c +++ b/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; diff --git a/components/esp_wifi/src/fast_crypto_ops.c b/components/esp_wifi/src/fast_crypto_ops.c index 5226a720b..b6045f30e 100644 --- a/components/esp_wifi/src/fast_crypto_ops.c +++ b/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 = { diff --git a/components/esp_wifi/src/phy_init.c b/components/esp_wifi/src/phy_init.c index c5abe2da5..d0d9aea86 100644 --- a/components/esp_wifi/src/phy_init.c +++ b/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; diff --git a/components/soc/esp32s2beta/rtc_init.c b/components/soc/esp32s2beta/rtc_init.c index c42b98f0f..fa8385d27 100644 --- a/components/soc/esp32s2beta/rtc_init.c +++ b/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) { diff --git a/components/soc/esp32s2beta/soc_memory_layout.c b/components/soc/esp32s2beta/soc_memory_layout.c index ea5f9e34a..390794f45 100644 --- a/components/soc/esp32s2beta/soc_memory_layout.c +++ b/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 diff --git a/examples/bluetooth/a2dp_gatts_coex/CMakeLists.txt b/examples/bluetooth/a2dp_gatts_coex/CMakeLists.txt index 3c9fa474c..b54d4610c 100644 --- a/examples/bluetooth/a2dp_gatts_coex/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/a2dp_sink/CMakeLists.txt b/examples/bluetooth/a2dp_sink/CMakeLists.txt index cc8e45027..72fb9f87d 100644 --- a/examples/bluetooth/a2dp_sink/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/a2dp_source/CMakeLists.txt b/examples/bluetooth/a2dp_source/CMakeLists.txt index 7c4e21528..55e21f6d4 100644 --- a/examples/bluetooth/a2dp_source/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/ble_adv/CMakeLists.txt b/examples/bluetooth/ble_adv/CMakeLists.txt index 22b94847f..2a4b8872a 100644 --- a/examples/bluetooth/ble_adv/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/ble_compatibility_test/CMakeLists.txt b/examples/bluetooth/ble_compatibility_test/CMakeLists.txt index a1bc6f47b..e4a204ce5 100644 --- a/examples/bluetooth/ble_compatibility_test/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/ble_eddystone/CMakeLists.txt b/examples/bluetooth/ble_eddystone/CMakeLists.txt index 9c5943ef0..2961c2927 100644 --- a/examples/bluetooth/ble_eddystone/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/ble_hid_device_demo/CMakeLists.txt b/examples/bluetooth/ble_hid_device_demo/CMakeLists.txt index f8c948007..0a407a5df 100644 --- a/examples/bluetooth/ble_hid_device_demo/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/ble_ibeacon/CMakeLists.txt b/examples/bluetooth/ble_ibeacon/CMakeLists.txt index dce22425d..2f80f9c02 100644 --- a/examples/bluetooth/ble_ibeacon/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/ble_spp_client/CMakeLists.txt b/examples/bluetooth/ble_spp_client/CMakeLists.txt index 301d8408e..aa98c9467 100644 --- a/examples/bluetooth/ble_spp_client/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/ble_spp_server/CMakeLists.txt b/examples/bluetooth/ble_spp_server/CMakeLists.txt index b4dcebe6a..7e461f590 100644 --- a/examples/bluetooth/ble_spp_server/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/ble_throughput/throughput_client/CMakeLists.txt b/examples/bluetooth/ble_throughput/throughput_client/CMakeLists.txt index 3a592ef4f..41add4970 100644 --- a/examples/bluetooth/ble_throughput/throughput_client/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/ble_throughput/throughput_server/CMakeLists.txt b/examples/bluetooth/ble_throughput/throughput_server/CMakeLists.txt index adcc12d73..ddbd1b498 100644 --- a/examples/bluetooth/ble_throughput/throughput_server/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/blufi/CMakeLists.txt b/examples/bluetooth/blufi/CMakeLists.txt index b85d34bbb..850040d3a 100644 --- a/examples/bluetooth/blufi/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/bt_discovery/CMakeLists.txt b/examples/bluetooth/bt_discovery/CMakeLists.txt index 6b73adc36..41e349588 100644 --- a/examples/bluetooth/bt_discovery/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/bt_spp_acceptor/CMakeLists.txt b/examples/bluetooth/bt_spp_acceptor/CMakeLists.txt index 8b26ee3f5..9fa9ebddd 100644 --- a/examples/bluetooth/bt_spp_acceptor/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/bt_spp_initiator/CMakeLists.txt b/examples/bluetooth/bt_spp_initiator/CMakeLists.txt index 4ee5f0778..c3f95222a 100644 --- a/examples/bluetooth/bt_spp_initiator/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/bt_spp_vfs_acceptor/CMakeLists.txt b/examples/bluetooth/bt_spp_vfs_acceptor/CMakeLists.txt index 46030210a..a55bcd7e3 100644 --- a/examples/bluetooth/bt_spp_vfs_acceptor/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/bt_spp_vfs_initiator/CMakeLists.txt b/examples/bluetooth/bt_spp_vfs_initiator/CMakeLists.txt index a13390392..94758343c 100644 --- a/examples/bluetooth/bt_spp_vfs_initiator/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/controller_hci_uart/CMakeLists.txt b/examples/bluetooth/controller_hci_uart/CMakeLists.txt index 49c95f4da..088a6f523 100644 --- a/examples/bluetooth/controller_hci_uart/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/gatt_client/CMakeLists.txt b/examples/bluetooth/gatt_client/CMakeLists.txt index d32eb6bee..ea402345d 100644 --- a/examples/bluetooth/gatt_client/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/gatt_security_client/CMakeLists.txt b/examples/bluetooth/gatt_security_client/CMakeLists.txt index 8f468d764..c61323685 100644 --- a/examples/bluetooth/gatt_security_client/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/gatt_security_server/CMakeLists.txt b/examples/bluetooth/gatt_security_server/CMakeLists.txt index 8e9d61ff9..1406a6bb2 100644 --- a/examples/bluetooth/gatt_security_server/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/gatt_server/CMakeLists.txt b/examples/bluetooth/gatt_server/CMakeLists.txt index fb1760c1e..352a6e6af 100644 --- a/examples/bluetooth/gatt_server/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/gatt_server_service_table/CMakeLists.txt b/examples/bluetooth/gatt_server_service_table/CMakeLists.txt index d6dc6a416..4ac442038 100644 --- a/examples/bluetooth/gatt_server_service_table/CMakeLists.txt +++ b/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) diff --git a/examples/bluetooth/gattc_multi_connect/CMakeLists.txt b/examples/bluetooth/gattc_multi_connect/CMakeLists.txt index 6a7a6b3b8..c8f4695b4 100644 --- a/examples/bluetooth/gattc_multi_connect/CMakeLists.txt +++ b/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) diff --git a/examples/build_system/cmake/idf_as_lib/CMakeLists.txt b/examples/build_system/cmake/idf_as_lib/CMakeLists.txt index b035e11b5..5da04579c 100644 --- a/examples/build_system/cmake/idf_as_lib/CMakeLists.txt +++ b/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) diff --git a/examples/ethernet/ethernet/CMakeLists.txt b/examples/ethernet/ethernet/CMakeLists.txt index ccd3c7cbe..6a5d19af0 100644 --- a/examples/ethernet/ethernet/CMakeLists.txt +++ b/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) diff --git a/examples/ethernet/iperf/CMakeLists.txt b/examples/ethernet/iperf/CMakeLists.txt index 347df08d5..e10fc3fee 100644 --- a/examples/ethernet/iperf/CMakeLists.txt +++ b/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) diff --git a/examples/peripherals/adc/CMakeLists.txt b/examples/peripherals/adc/CMakeLists.txt index b01d63521..c272a0014 100644 --- a/examples/peripherals/adc/CMakeLists.txt +++ b/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) diff --git a/examples/peripherals/adc2/CMakeLists.txt b/examples/peripherals/adc2/CMakeLists.txt index 7ea7329c1..3b4af7e70 100644 --- a/examples/peripherals/adc2/CMakeLists.txt +++ b/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) diff --git a/examples/peripherals/can/can_alert_and_recovery/CMakeLists.txt b/examples/peripherals/can/can_alert_and_recovery/CMakeLists.txt index 4d4838176..cbe58fcb0 100644 --- a/examples/peripherals/can/can_alert_and_recovery/CMakeLists.txt +++ b/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) diff --git a/examples/peripherals/can/can_network/can_network_listen_only/CMakeLists.txt b/examples/peripherals/can/can_network/can_network_listen_only/CMakeLists.txt index 42617e10f..c5b0c8d4a 100644 --- a/examples/peripherals/can/can_network/can_network_listen_only/CMakeLists.txt +++ b/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) diff --git a/examples/peripherals/can/can_network/can_network_master/CMakeLists.txt b/examples/peripherals/can/can_network/can_network_master/CMakeLists.txt index 33ac7b660..e44067322 100644 --- a/examples/peripherals/can/can_network/can_network_master/CMakeLists.txt +++ b/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) diff --git a/examples/peripherals/can/can_network/can_network_slave/CMakeLists.txt b/examples/peripherals/can/can_network/can_network_slave/CMakeLists.txt index 1550db156..6c5137f0f 100644 --- a/examples/peripherals/can/can_network/can_network_slave/CMakeLists.txt +++ b/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) diff --git a/examples/peripherals/can/can_self_test/CMakeLists.txt b/examples/peripherals/can/can_self_test/CMakeLists.txt index 027060e22..216e8edf5 100644 --- a/examples/peripherals/can/can_self_test/CMakeLists.txt +++ b/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) diff --git a/examples/peripherals/i2c/i2c_tools/CMakeLists.txt b/examples/peripherals/i2c/i2c_tools/CMakeLists.txt index 53f2a254f..7fd3cf67e 100644 --- a/examples/peripherals/i2c/i2c_tools/CMakeLists.txt +++ b/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) diff --git a/examples/peripherals/i2s/CMakeLists.txt b/examples/peripherals/i2s/CMakeLists.txt index 19c5f8830..8edbb5490 100644 --- a/examples/peripherals/i2s/CMakeLists.txt +++ b/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) diff --git a/examples/peripherals/i2s_adc_dac/CMakeLists.txt b/examples/peripherals/i2s_adc_dac/CMakeLists.txt index 4b27d7cd6..4d8f5ef28 100644 --- a/examples/peripherals/i2s_adc_dac/CMakeLists.txt +++ b/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) diff --git a/examples/peripherals/mcpwm/mcpwm_basic_config/CMakeLists.txt b/examples/peripherals/mcpwm/mcpwm_basic_config/CMakeLists.txt index 53eb976ea..520e40488 100644 --- a/examples/peripherals/mcpwm/mcpwm_basic_config/CMakeLists.txt +++ b/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) diff --git a/examples/peripherals/mcpwm/mcpwm_bldc_control/CMakeLists.txt b/examples/peripherals/mcpwm/mcpwm_bldc_control/CMakeLists.txt index 10ed869e1..67bb8beea 100644 --- a/examples/peripherals/mcpwm/mcpwm_bldc_control/CMakeLists.txt +++ b/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) diff --git a/examples/peripherals/mcpwm/mcpwm_brushed_dc_control/CMakeLists.txt b/examples/peripherals/mcpwm/mcpwm_brushed_dc_control/CMakeLists.txt index a4baf8b40..ee6ca0a97 100644 --- a/examples/peripherals/mcpwm/mcpwm_brushed_dc_control/CMakeLists.txt +++ b/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) diff --git a/examples/peripherals/mcpwm/mcpwm_servo_control/CMakeLists.txt b/examples/peripherals/mcpwm/mcpwm_servo_control/CMakeLists.txt index 524c0ec97..dc9beaffb 100644 --- a/examples/peripherals/mcpwm/mcpwm_servo_control/CMakeLists.txt +++ b/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) diff --git a/examples/peripherals/pcnt/CMakeLists.txt b/examples/peripherals/pcnt/CMakeLists.txt index 8f9d35a79..6858785c8 100644 --- a/examples/peripherals/pcnt/CMakeLists.txt +++ b/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) diff --git a/examples/peripherals/sdio/host/CMakeLists.txt b/examples/peripherals/sdio/host/CMakeLists.txt index fb1d9a33e..a3ab5fba9 100644 --- a/examples/peripherals/sdio/host/CMakeLists.txt +++ b/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) diff --git a/examples/peripherals/sdio/slave/CMakeLists.txt b/examples/peripherals/sdio/slave/CMakeLists.txt index c99445397..2f2080d04 100644 --- a/examples/peripherals/sdio/slave/CMakeLists.txt +++ b/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) diff --git a/examples/peripherals/timer_group/CMakeLists.txt b/examples/peripherals/timer_group/CMakeLists.txt index 247819ef3..989d76a45 100644 --- a/examples/peripherals/timer_group/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/asio/chat_client/CMakeLists.txt b/examples/protocols/asio/chat_client/CMakeLists.txt index ddcc068ba..38033d943 100644 --- a/examples/protocols/asio/chat_client/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/asio/chat_server/CMakeLists.txt b/examples/protocols/asio/chat_server/CMakeLists.txt index 182f8d402..cd6a925f3 100644 --- a/examples/protocols/asio/chat_server/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/asio/tcp_echo_server/CMakeLists.txt b/examples/protocols/asio/tcp_echo_server/CMakeLists.txt index 6bf8f4682..cc906e36c 100644 --- a/examples/protocols/asio/tcp_echo_server/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/asio/udp_echo_server/CMakeLists.txt b/examples/protocols/asio/udp_echo_server/CMakeLists.txt index 59493277c..0ebe12f2b 100644 --- a/examples/protocols/asio/udp_echo_server/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/esp_http_client/CMakeLists.txt b/examples/protocols/esp_http_client/CMakeLists.txt index cce8eb1e2..5dd29aeac 100644 --- a/examples/protocols/esp_http_client/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/http2_request/CMakeLists.txt b/examples/protocols/http2_request/CMakeLists.txt index 0a720bf54..b3ca02d77 100644 --- a/examples/protocols/http2_request/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/http_server/advanced_tests/CMakeLists.txt b/examples/protocols/http_server/advanced_tests/CMakeLists.txt index c3972d7d3..012f07e4d 100644 --- a/examples/protocols/http_server/advanced_tests/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/http_server/persistent_sockets/CMakeLists.txt b/examples/protocols/http_server/persistent_sockets/CMakeLists.txt index b6d34fb24..85281d89a 100644 --- a/examples/protocols/http_server/persistent_sockets/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/http_server/simple/CMakeLists.txt b/examples/protocols/http_server/simple/CMakeLists.txt index db2ef2fa6..335f96cd8 100644 --- a/examples/protocols/http_server/simple/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/https_mbedtls/CMakeLists.txt b/examples/protocols/https_mbedtls/CMakeLists.txt index a053cbaf0..b42d53900 100644 --- a/examples/protocols/https_mbedtls/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/https_request/CMakeLists.txt b/examples/protocols/https_request/CMakeLists.txt index 6e3f1265b..3ff9b29ad 100644 --- a/examples/protocols/https_request/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/https_server/CMakeLists.txt b/examples/protocols/https_server/CMakeLists.txt index 35fe8ca89..4c068c308 100644 --- a/examples/protocols/https_server/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/modbus_master/CMakeLists.txt b/examples/protocols/modbus_master/CMakeLists.txt index d39c8c85d..66400e830 100644 --- a/examples/protocols/modbus_master/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/mqtt/publish_test/CMakeLists.txt b/examples/protocols/mqtt/publish_test/CMakeLists.txt index 2203d063f..e494bbbc1 100644 --- a/examples/protocols/mqtt/publish_test/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/mqtt/ssl/CMakeLists.txt b/examples/protocols/mqtt/ssl/CMakeLists.txt index a7b2c4420..a265066a0 100644 --- a/examples/protocols/mqtt/ssl/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/mqtt/ssl_mutual_auth/CMakeLists.txt b/examples/protocols/mqtt/ssl_mutual_auth/CMakeLists.txt index 472a3ca3e..cd3de74aa 100644 --- a/examples/protocols/mqtt/ssl_mutual_auth/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/mqtt/tcp/CMakeLists.txt b/examples/protocols/mqtt/tcp/CMakeLists.txt index 5a70e7aa0..25e9bc38a 100644 --- a/examples/protocols/mqtt/tcp/CMakeLists.txt +++ b/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) \ No newline at end of file diff --git a/examples/protocols/mqtt/ws/CMakeLists.txt b/examples/protocols/mqtt/ws/CMakeLists.txt index f0490061c..6b7b93d19 100644 --- a/examples/protocols/mqtt/ws/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/mqtt/wss/CMakeLists.txt b/examples/protocols/mqtt/wss/CMakeLists.txt index 3e2d5fc23..6519f0296 100644 --- a/examples/protocols/mqtt/wss/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/openssl_client/CMakeLists.txt b/examples/protocols/openssl_client/CMakeLists.txt index 577d4ae08..f39177301 100644 --- a/examples/protocols/openssl_client/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/openssl_server/CMakeLists.txt b/examples/protocols/openssl_server/CMakeLists.txt index 9fb42034a..c93027727 100644 --- a/examples/protocols/openssl_server/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/pppos_client/CMakeLists.txt b/examples/protocols/pppos_client/CMakeLists.txt index 960952578..048c79092 100644 --- a/examples/protocols/pppos_client/CMakeLists.txt +++ b/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) diff --git a/examples/protocols/sntp/CMakeLists.txt b/examples/protocols/sntp/CMakeLists.txt index 48ca89b29..5676bb760 100644 --- a/examples/protocols/sntp/CMakeLists.txt +++ b/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) diff --git a/examples/provisioning/ble_prov/CMakeLists.txt b/examples/provisioning/ble_prov/CMakeLists.txt index 30012d3e4..63178e923 100644 --- a/examples/provisioning/ble_prov/CMakeLists.txt +++ b/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) diff --git a/examples/provisioning/console_prov/CMakeLists.txt b/examples/provisioning/console_prov/CMakeLists.txt index 654200588..5352f1e19 100644 --- a/examples/provisioning/console_prov/CMakeLists.txt +++ b/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) diff --git a/examples/provisioning/custom_config/CMakeLists.txt b/examples/provisioning/custom_config/CMakeLists.txt index ec9b0ce66..ca8359f82 100644 --- a/examples/provisioning/custom_config/CMakeLists.txt +++ b/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) diff --git a/examples/provisioning/manager/CMakeLists.txt b/examples/provisioning/manager/CMakeLists.txt index b036d9ce6..a628955d3 100644 --- a/examples/provisioning/manager/CMakeLists.txt +++ b/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) diff --git a/examples/provisioning/softap_prov/CMakeLists.txt b/examples/provisioning/softap_prov/CMakeLists.txt index fa6ac1433..e63c8e4ed 100644 --- a/examples/provisioning/softap_prov/CMakeLists.txt +++ b/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) diff --git a/examples/storage/sd_card/CMakeLists.txt b/examples/storage/sd_card/CMakeLists.txt index 00153c74c..9c49925fd 100644 --- a/examples/storage/sd_card/CMakeLists.txt +++ b/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) diff --git a/examples/system/app_trace_to_host/CMakeLists.txt b/examples/system/app_trace_to_host/CMakeLists.txt index b490018a3..abe6c8938 100644 --- a/examples/system/app_trace_to_host/CMakeLists.txt +++ b/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) diff --git a/examples/system/console/CMakeLists.txt b/examples/system/console/CMakeLists.txt index d3f354f7f..25197675a 100644 --- a/examples/system/console/CMakeLists.txt +++ b/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) diff --git a/examples/system/deep_sleep/CMakeLists.txt b/examples/system/deep_sleep/CMakeLists.txt index 38e606ff2..cb7118f64 100644 --- a/examples/system/deep_sleep/CMakeLists.txt +++ b/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) diff --git a/examples/system/esp_timer/CMakeLists.txt b/examples/system/esp_timer/CMakeLists.txt index 4222f063c..18d67a054 100644 --- a/examples/system/esp_timer/CMakeLists.txt +++ b/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) diff --git a/examples/system/gcov/CMakeLists.txt b/examples/system/gcov/CMakeLists.txt index 8a1f71568..86396a939 100644 --- a/examples/system/gcov/CMakeLists.txt +++ b/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) diff --git a/examples/system/himem/CMakeLists.txt b/examples/system/himem/CMakeLists.txt index 4297397b6..b3740d8de 100644 --- a/examples/system/himem/CMakeLists.txt +++ b/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) diff --git a/examples/system/light_sleep/CMakeLists.txt b/examples/system/light_sleep/CMakeLists.txt index ed39e9671..253a31a00 100644 --- a/examples/system/light_sleep/CMakeLists.txt +++ b/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) diff --git a/examples/system/ota/advanced_https_ota/CMakeLists.txt b/examples/system/ota/advanced_https_ota/CMakeLists.txt index 7f8b1cb53..489b5babf 100644 --- a/examples/system/ota/advanced_https_ota/CMakeLists.txt +++ b/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) diff --git a/examples/system/ota/native_ota_example/CMakeLists.txt b/examples/system/ota/native_ota_example/CMakeLists.txt index 9cb3fe6e4..e473e3af8 100644 --- a/examples/system/ota/native_ota_example/CMakeLists.txt +++ b/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) diff --git a/examples/system/ota/simple_ota_example/CMakeLists.txt b/examples/system/ota/simple_ota_example/CMakeLists.txt index 2d8bd77c4..83cdc9762 100644 --- a/examples/system/ota/simple_ota_example/CMakeLists.txt +++ b/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) diff --git a/examples/system/sysview_tracing/CMakeLists.txt b/examples/system/sysview_tracing/CMakeLists.txt index 8c11f8945..85173a8b6 100644 --- a/examples/system/sysview_tracing/CMakeLists.txt +++ b/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) diff --git a/examples/system/sysview_tracing_heap_log/CMakeLists.txt b/examples/system/sysview_tracing_heap_log/CMakeLists.txt index 39a10b552..c2ff26776 100644 --- a/examples/system/sysview_tracing_heap_log/CMakeLists.txt +++ b/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) diff --git a/examples/system/ulp/CMakeLists.txt b/examples/system/ulp/CMakeLists.txt index c24d801b3..7d05840a7 100644 --- a/examples/system/ulp/CMakeLists.txt +++ b/examples/system/ulp/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(ulp-example) \ No newline at end of file diff --git a/examples/system/ulp_adc/CMakeLists.txt b/examples/system/ulp_adc/CMakeLists.txt index 7037f86d8..db2a3ea68 100644 --- a/examples/system/ulp_adc/CMakeLists.txt +++ b/examples/system/ulp_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(ulp-adc-example) \ No newline at end of file diff --git a/examples/wifi/espnow/CMakeLists.txt b/examples/wifi/espnow/CMakeLists.txt index 73c190ccb..bd72a7670 100644 --- a/examples/wifi/espnow/CMakeLists.txt +++ b/examples/wifi/espnow/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(espnow_example) diff --git a/examples/wifi/iperf/CMakeLists.txt b/examples/wifi/iperf/CMakeLists.txt index c6c13f292..e2869fde6 100644 --- a/examples/wifi/iperf/CMakeLists.txt +++ b/examples/wifi/iperf/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(iperf) diff --git a/examples/wifi/power_save/CMakeLists.txt b/examples/wifi/power_save/CMakeLists.txt index a9a182fe6..414c76894 100644 --- a/examples/wifi/power_save/CMakeLists.txt +++ b/examples/wifi/power_save/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(power_save) diff --git a/examples/wifi/simple_sniffer/CMakeLists.txt b/examples/wifi/simple_sniffer/CMakeLists.txt index 2ec8c4d9c..bb06c0189 100644 --- a/examples/wifi/simple_sniffer/CMakeLists.txt +++ b/examples/wifi/simple_sniffer/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(simple_sniffer) diff --git a/tools/ci/build_examples_cmake.sh b/tools/ci/build_examples_cmake.sh index e19d255c1..d9dd02d23 100755 --- a/tools/ci/build_examples_cmake.sh +++ b/tools/ci/build_examples_cmake.sh @@ -34,7 +34,7 @@ set -o pipefail # Exit if pipe failed. # Remove the initial space and instead use '\n'. IFS=$'\n\t' -export PATH="$IDF_PATH/tools:$PATH" # for idf.py +export PATH="$IDF_PATH/tools/ci:$IDF_PATH/tools:$PATH" # ----------------------------------------------------------------------------- @@ -49,7 +49,7 @@ die() { set -o nounset # Exit if variable not set. -echo "build_examples running in ${PWD}" +echo "build_examples running in ${PWD} for target $IDF_TARGET" # only 0 or 1 arguments [ $# -le 1 ] || die "Have to run as $(basename $0) []" @@ -66,7 +66,9 @@ LOG_SUSPECTED=${LOG_PATH}/common_log.txt touch ${LOG_SUSPECTED} SDKCONFIG_DEFAULTS_CI=sdkconfig.ci -EXAMPLE_PATHS=$( find ${IDF_PATH}/examples/ -type f -name CMakeLists.txt | grep -v "/components/" | grep -v "/common_components/" | grep -v "/main/" | grep -v "/idf_as_lib/stubs/" | sort ) +EXAMPLE_PATHS=$( get_supported_examples.sh $IDF_TARGET | sed "s#^#${IDF_PATH}\/examples\/#g" | awk '{print $0"/CmakeLists.txt"}' ) +echo "All examples found for target $IDF_TARGET:" +echo $EXAMPLE_PATHS if [ $# -eq 0 ] then @@ -91,7 +93,9 @@ else # count number of examples NUM_OF_EXAMPLES=$( echo "${EXAMPLE_PATHS}" | wc -l ) - [ ${NUM_OF_EXAMPLES} -lt 100 ] && die "NUM_OF_EXAMPLES is bad" + if [ "$IDF_TARGET" != "esp32s2beta" ]; then + [ ${NUM_OF_EXAMPLES} -lt 100 ] && die "NUM_OF_EXAMPLES is bad" + fi # separate intervals #57 / 5 == 12 @@ -115,10 +119,10 @@ build_example () { local EXAMPLE_DIR=$(dirname "${CMAKELISTS}") local EXAMPLE_NAME=$(basename "${EXAMPLE_DIR}") - echo "Building ${EXAMPLE_NAME} as ${ID}..." - mkdir -p "example_builds/${ID}" - cp -r "${EXAMPLE_DIR}" "example_builds/${ID}" - pushd "example_builds/${ID}/${EXAMPLE_NAME}" + echo "Building ${EXAMPLE_NAME} for ${IDF_TARGET} as ${ID}..." + mkdir -p "example_builds/${IDF_TARGET}/${ID}" + cp -r "${EXAMPLE_DIR}" "example_builds/${IDF_TARGET}/${ID}" + pushd "example_builds/${IDF_TARGET}/${ID}/${EXAMPLE_NAME}" # be stricter in the CI build than the default IDF settings export EXTRA_CFLAGS=${PEDANTIC_CFLAGS} export EXTRA_CXXFLAGS=${EXTRA_CFLAGS} diff --git a/tools/ci/executable-list.txt b/tools/ci/executable-list.txt index 5cbf7b3a2..e252ed17d 100644 --- a/tools/ci/executable-list.txt +++ b/tools/ci/executable-list.txt @@ -34,6 +34,7 @@ tools/ci/check_ut_cmake_make.sh tools/ci/checkout_project_ref.py tools/ci/envsubst.py tools/ci/get-full-sources.sh +tools/ci/get_supported_examples.sh tools/ci/mirror-submodule-update.sh tools/ci/mirror-synchronize.sh tools/ci/multirun_with_pyenv.sh diff --git a/tools/ci/get_supported_examples.sh b/tools/ci/get_supported_examples.sh new file mode 100755 index 000000000..1cae80b56 --- /dev/null +++ b/tools/ci/get_supported_examples.sh @@ -0,0 +1,33 @@ +#!/bin/bash +set -o errexit +set -o pipefail +set -o nounset + +DEBUG_SHELL=${DEBUG_SHELL:-"0"} +[ "${DEBUG_SHELL}" = "1" ] && set -x + +if [[ $# < 1 ]]; then + echo "no target specified!" >&2 + exit -1 +fi + +cd $IDF_PATH/examples +ALL_EXAMPLES=$( find . -type f -name CMakeLists.txt | grep -v "/components/" | grep -v "/common_components/" | grep -v "/main/" | grep -v "/idf_as_lib/stubs/" | sed "s/\/CMakeLists.txt//g" | sort ) +EXAMPLE_LIST=$( realpath --relative-to=. $ALL_EXAMPLES ) + +for EXAMPLE in $EXAMPLE_LIST +do + SEARCHED=$( grep -E "SUPPORTED_TARGETS" $EXAMPLE/CMakeLists.txt | sed "s/set\s*(\s*SUPPORTED_TARGETS//g" | sed "s/)//g" ) || true + if [[ $SEARCHED == "" ]]; then + #when SUPPORTED_TARGETS not set, allow all targets implicitly + echo "$EXAMPLE" + else + for TARGET in $SEARCHED + do + if [[ $TARGET == $1 ]]; then + echo "$EXAMPLE" + break + fi + done + fi +done diff --git a/tools/ci/mirror-list.txt b/tools/ci/mirror-list.txt index cd18d7d10..d257d0def 100644 --- a/tools/ci/mirror-list.txt +++ b/tools/ci/mirror-list.txt @@ -1,4 +1,5 @@ components/esp_wifi/lib_esp32 @GENERAL_MIRROR_SERVER@/idf/esp32-wifi-lib.git +components/esp_wifi/lib_esp32s2beta @GENERAL_MIRROR_SERVER@/idf/esp32-wifi-lib.git components/bt/lib @GENERAL_MIRROR_SERVER@/idf/esp32-bt-lib.git components/esptool_py/esptool @GENERAL_MIRROR_SERVER@/idf/esptool.git components/coap/libcoap @GENERAL_MIRROR_SERVER@/idf/libcoap.git ALLOW_TO_SYNC_FROM_PUBLIC diff --git a/tools/test_idf_tools/test_idf_tools.py b/tools/test_idf_tools/test_idf_tools.py index 49927d39f..d6c7ef393 100755 --- a/tools/test_idf_tools/test_idf_tools.py +++ b/tools/test_idf_tools/test_idf_tools.py @@ -54,7 +54,8 @@ class TestUsage(unittest.TestCase): mirror_prefix_map = None if os.path.exists(old_tools_dir): - mirror_prefix_map = 'https://dl.espressif.com/dl,file://' + os.path.join(old_tools_dir, 'dist') + mirror_prefix_map = 'https://dl.espressif.com/dl/toolchains/preview,file://' + os.path.join(old_tools_dir, 'dist') + mirror_prefix_map += ';https://dl.espressif.com/dl,file://' + os.path.join(old_tools_dir, 'dist') mirror_prefix_map += ';https://github.com/espressif/.*/releases/download/.*/,file://' + os.path.join(old_tools_dir, 'dist', '') if mirror_prefix_map: print('Using IDF_MIRROR_PREFIX_MAP={}'.format(mirror_prefix_map)) diff --git a/tools/tools.json b/tools/tools.json index 3d0941660..44c29f0c3 100644 --- a/tools/tools.json +++ b/tools/tools.json @@ -56,6 +56,62 @@ } ] }, + { + "description": "Toolchain for Xtensa (ESP32-S2) based on GCC", + "export_paths": [ + [ + "xtensa-esp32s2-elf", + "bin" + ] + ], + "export_vars": {}, + "info_url": "https://github.com/espressif/crosstool-NG", + "install": "always", + "license": "GPL-3.0-with-GCC-exception", + "name": "xtensa-esp32s2-elf", + "version_cmd": [ + "xtensa-esp32s2-elf-gcc", + "--version" + ], + "version_regex": "\\(crosstool-NG\\s+(?:crosstool-ng-)?([0-9a-z\\.\\-]+)\\)\\s*([0-9\\.]+)", + "version_regex_replace": "\\1-\\2", + "versions": [ + { + "linux-amd64": { + "sha256": "014f13cbaef62b1b2edb42d6c49fc9e277005c30a4b48d8216568b76762101d2", + "size": 63081098, + "url": "https://dl.espressif.com/dl/toolchains/preview/xtensa-esp32s2-elf-gcc8_2_0-esp32s2-dev-4-g3a626e-linux-amd64.tar.gz" + }, + "linux-armel": { + "sha256": "5a7eb91937f3d4f93d1830ca62d93db995cd7ce06b07e76d6b58d34f7b8acf50", + "size": 61288049, + "url": "https://dl.espressif.com/dl/toolchains/preview/xtensa-esp32s2-elf-gcc8_2_0-esp32s2-dev-4-g3a626e-linux-armel.tar.gz" + }, + "linux-i686": { + "sha256": "ce85ccde5b42f5dc31d41eca3111bf61a056a38ab6e43b70b76b53fed042709f", + "size": 65070186, + "url": "https://dl.espressif.com/dl/toolchains/preview/xtensa-esp32s2-elf-gcc8_2_0-esp32s2-dev-4-g3a626e-linux-i686.tar.gz" + }, + "macos": { + "sha256": "e566b9f1288ef3bd89b08e9807e88c37f760d48e74b84eee9e9642bb5c0a0bbd", + "size": 69793197, + "url": " https://dl.espressif.com/dl/toolchains/preview/xtensa-esp32s2-elf-gcc8_2_0-esp32s2-dev-4-g3a626e-macos.tar.gz " + }, + "name": "esp32s2-dev-4-g3a626e9-8.2.0", + "status": "recommended", + "win32": { + "sha256": "6ebdcd01de2c8c50ac38446dd4421bb44d320b30b85727c49db26a703ac2c381", + "size": 73352955, + "url": " https://dl.espressif.com/dl/toolchains/preview/xtensa-esp32s2-elf-gcc8_2_0-esp32s2-dev-4-g3a626e-win32.zip" + }, + "win64": { + "sha256": "6ebdcd01de2c8c50ac38446dd4421bb44d320b30b85727c49db26a703ac2c381", + "size": 73352955, + "url": "https://dl.espressif.com/dl/toolchains/preview/xtensa-esp32s2-elf-gcc8_2_0-esp32s2-dev-4-g3a626e-win32.zip" + } + } + ] + }, { "description": "Toolchain for ESP32 ULP coprocessor", "export_paths": [