From 9f9ff956c90c7e52a9938c92958257622685a891 Mon Sep 17 00:00:00 2001 From: marc Date: Thu, 24 Apr 2025 07:46:46 +0200 Subject: [PATCH] conditional_comps --- main/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index 39c1c1e..f7f29e5 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -1,8 +1,14 @@ set(EXTRA_COMPONENT_DIRS ../components) +set(comps heap nvs_flash meteofrance communication esp_netif image_downloader fatfs sdmmc vfs littlefs wifi_logger protocol_examples_common app_update esp_https_ota ) + +if(${IDF_TARGET} STREQUAL "esp32p4") + list(APPEND comps bsp_extra esp32_p4_function_ev_board) +endif() + idf_component_register(SRC_DIRS . fonts INCLUDE_DIRS "." - REQUIRES heap nvs_flash meteofrance communication esp_netif image_downloader fatfs sdmmc vfs littlefs wifi_logger protocol_examples_common app_update esp_https_ota bsp_extra esp32_p4_function_ev_board + REQUIRES ${comps} EMBED_TXTFILES ${project_dir}/main/ca_cert.pem)