From c9281dc1e309bd9797d5947dec93d11e2c6c59b9 Mon Sep 17 00:00:00 2001 From: Ferdinand Bachmann Date: Mon, 17 Nov 2025 11:47:19 +0100 Subject: [PATCH] fix(cmake): Allow disabling component validation Allow disabling component validation by setting ESP_IDF_DISABLE_COMPONENT_VALIDATION=1 in the environment. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e00a17e2e98..330754458eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -333,7 +333,7 @@ endforeach() # Only run validation for the main project, not subprojects like bootloader idf_build_get_property(bootloader_build BOOTLOADER_BUILD) idf_build_get_property(esp_tee_build ESP_TEE_BUILD) -if(NOT bootloader_build AND NOT esp_tee_build) +if(NOT $ENV{ESP_IDF_DISABLE_COMPONENT_VALIDATION} AND NOT bootloader_build AND NOT esp_tee_build) include("${CMAKE_CURRENT_LIST_DIR}/tools/cmake/component_validation.cmake") __component_validation_run_checks() endif()