diff --git a/tools/test_apps/security/secure_boot/CMakeLists.txt b/tools/test_apps/security/secure_boot/CMakeLists.txt index 0c83cbea07..418b8f5cd3 100644 --- a/tools/test_apps/security/secure_boot/CMakeLists.txt +++ b/tools/test_apps/security/secure_boot/CMakeLists.txt @@ -2,6 +2,9 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.22) -# Secure Boot not currently supported for ESP32-S2 include($ENV{IDF_PATH}/tools/cmake/project.cmake) + +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +idf_build_set_property(MINIMAL_BUILD ON) + project(secure_boot) diff --git a/tools/test_apps/security/signed_app_no_secure_boot/CMakeLists.txt b/tools/test_apps/security/signed_app_no_secure_boot/CMakeLists.txt index 0c83cbea07..418b8f5cd3 100644 --- a/tools/test_apps/security/signed_app_no_secure_boot/CMakeLists.txt +++ b/tools/test_apps/security/signed_app_no_secure_boot/CMakeLists.txt @@ -2,6 +2,9 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.22) -# Secure Boot not currently supported for ESP32-S2 include($ENV{IDF_PATH}/tools/cmake/project.cmake) + +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +idf_build_set_property(MINIMAL_BUILD ON) + project(secure_boot) diff --git a/tools/test_apps/security/signed_app_no_secure_boot/main/CMakeLists.txt b/tools/test_apps/security/signed_app_no_secure_boot/main/CMakeLists.txt index cf2c455cb5..72d6f353d5 100644 --- a/tools/test_apps/security/signed_app_no_secure_boot/main/CMakeLists.txt +++ b/tools/test_apps/security/signed_app_no_secure_boot/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "main.c" - INCLUDE_DIRS ".") + INCLUDE_DIRS "." + PRIV_REQUIRES nvs_flash)