From 27059a16f883a785ef2ee08eb58d94bf4d786183 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Mon, 27 Oct 2025 16:09:47 +0800 Subject: [PATCH] test(test_apps): set minimal build for misc test-apps --- components/esp_libc/test_apps/newlib/CMakeLists.txt | 4 ++++ .../custom_bootloader/bootloader_extra_dir/CMakeLists.txt | 3 +++ examples/peripherals/uart/uart_dma_ota/CMakeLists.txt | 4 ++++ tools/test_apps/build_system/bootloader/CMakeLists.txt | 4 ++++ tools/test_apps/build_system/bootloader/main/CMakeLists.txt | 1 + 5 files changed, 16 insertions(+) diff --git a/components/esp_libc/test_apps/newlib/CMakeLists.txt b/components/esp_libc/test_apps/newlib/CMakeLists.txt index 5eb21582daf..bc3d808c590 100644 --- a/components/esp_libc/test_apps/newlib/CMakeLists.txt +++ b/components/esp_libc/test_apps/newlib/CMakeLists.txt @@ -4,4 +4,8 @@ cmake_minimum_required(VERSION 3.22) set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/test_apps/components") 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(newlib_test) diff --git a/examples/custom_bootloader/bootloader_extra_dir/CMakeLists.txt b/examples/custom_bootloader/bootloader_extra_dir/CMakeLists.txt index 3584d91482f..c10daedebe9 100644 --- a/examples/custom_bootloader/bootloader_extra_dir/CMakeLists.txt +++ b/examples/custom_bootloader/bootloader_extra_dir/CMakeLists.txt @@ -8,4 +8,7 @@ include($ENV{IDF_PATH}/tools/cmake/project.cmake) idf_build_set_property(BOOTLOADER_EXTRA_COMPONENT_DIRS "${CMAKE_CURRENT_LIST_DIR}/extra_bootloader_components/" APPEND) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +idf_build_set_property(MINIMAL_BUILD ON) + project(main) diff --git a/examples/peripherals/uart/uart_dma_ota/CMakeLists.txt b/examples/peripherals/uart/uart_dma_ota/CMakeLists.txt index 1b79b3b5cd8..286fc86ea60 100644 --- a/examples/peripherals/uart/uart_dma_ota/CMakeLists.txt +++ b/examples/peripherals/uart/uart_dma_ota/CMakeLists.txt @@ -3,4 +3,8 @@ cmake_minimum_required(VERSION 3.22) 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(uart_dma_ota) diff --git a/tools/test_apps/build_system/bootloader/CMakeLists.txt b/tools/test_apps/build_system/bootloader/CMakeLists.txt index 6113da78809..f07362a3f73 100644 --- a/tools/test_apps/build_system/bootloader/CMakeLists.txt +++ b/tools/test_apps/build_system/bootloader/CMakeLists.txt @@ -5,4 +5,8 @@ cmake_minimum_required(VERSION 3.22) 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(build_system_bootloader) diff --git a/tools/test_apps/build_system/bootloader/main/CMakeLists.txt b/tools/test_apps/build_system/bootloader/main/CMakeLists.txt index 004c911d441..388c63078f3 100644 --- a/tools/test_apps/build_system/bootloader/main/CMakeLists.txt +++ b/tools/test_apps/build_system/bootloader/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "build_system_bootloader_main.c" + REQUIRES nvs_flash INCLUDE_DIRS ".")