From 1d4a634b98df68c5d728d89273275bafcc5f2501 Mon Sep 17 00:00:00 2001 From: "harshal.patil" Date: Mon, 29 Sep 2025 14:36:52 +0530 Subject: [PATCH] test(security): Use minimal build in the security test apps --- tools/test_apps/security/secure_boot/CMakeLists.txt | 5 ++++- .../security/signed_app_no_secure_boot/CMakeLists.txt | 5 ++++- .../security/signed_app_no_secure_boot/main/CMakeLists.txt | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) 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)