Skip to content

Commit f088a12

Browse files
committed
Merge branch 'test/set_minimal_build_for_security_test_apps' into 'master'
test(security): Use minimal build in the security test apps Closes IDF-14203 See merge request espressif/esp-idf!42292
2 parents 343fd79 + 1d4a634 commit f088a12

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

tools/test_apps/security/secure_boot/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# CMakeLists in this exact order for cmake to work correctly
33
cmake_minimum_required(VERSION 3.22)
44

5-
# Secure Boot not currently supported for ESP32-S2
65
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
6+
7+
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
8+
idf_build_set_property(MINIMAL_BUILD ON)
9+
710
project(secure_boot)

tools/test_apps/security/signed_app_no_secure_boot/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# CMakeLists in this exact order for cmake to work correctly
33
cmake_minimum_required(VERSION 3.22)
44

5-
# Secure Boot not currently supported for ESP32-S2
65
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
6+
7+
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
8+
idf_build_set_property(MINIMAL_BUILD ON)
9+
710
project(secure_boot)
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
idf_component_register(SRCS "main.c"
2-
INCLUDE_DIRS ".")
2+
INCLUDE_DIRS "."
3+
PRIV_REQUIRES nvs_flash)

0 commit comments

Comments
 (0)