From 9980a9f53abac57678c45b712df780fc8ee29711 Mon Sep 17 00:00:00 2001 From: Vincent Hamp Date: Mon, 13 Jul 2026 08:35:27 +0200 Subject: [PATCH 1/2] fix(mocks): add missing `esp_hal_*` includes --- tools/mocks/driver/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/mocks/driver/CMakeLists.txt b/tools/mocks/driver/CMakeLists.txt index f8647eda7c9..44b4b1b243f 100644 --- a/tools/mocks/driver/CMakeLists.txt +++ b/tools/mocks/driver/CMakeLists.txt @@ -16,6 +16,13 @@ set(include_dirs "${original_driver_dir}/i2c/include" "${IDF_PATH}/components/esp_driver_usb_serial_jtag/include") +list(APPEND include_dirs + "${IDF_PATH}/components/esp_hal_gpio/include" + "${IDF_PATH}/components/esp_hal_gpio/linux/include" + "${IDF_PATH}/components/esp_hal_gpspi/include" + "${IDF_PATH}/components/esp_hal_rmt/include" + "${IDF_PATH}/components/esp_hal_i2c/include") + # Note: "hal" and "soc" are only required for corresponding header files and their definitions # here, they don't provide functionality when built for running on the host. idf_component_mock(INCLUDE_DIRS ${include_dirs} From 0fbbcd7271addfaa8b126e79e962497c647c6dda Mon Sep 17 00:00:00 2001 From: Chen Chen Date: Tue, 14 Jul 2026 15:35:04 +0800 Subject: [PATCH 2/2] fix: update flash encryption mock build check Use a non-deprecated bootloader support API in the mock build test. Keep the test focused on validating the generated bootloader support mock. Co-authored-by: Cursor --- .../linux_compatible/mock_build_test/main/mock_build_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test_apps/linux_compatible/mock_build_test/main/mock_build_test.c b/tools/test_apps/linux_compatible/mock_build_test/main/mock_build_test.c index d3a22fe3bb9..eebf76f62e1 100644 --- a/tools/test_apps/linux_compatible/mock_build_test/main/mock_build_test.c +++ b/tools/test_apps/linux_compatible/mock_build_test/main/mock_build_test.c @@ -150,7 +150,7 @@ void app_main(void) bootloader_random_enable_Ignore(); bootloader_random_enable(); - esp_flash_encryption_enabled_IgnoreAndReturn(true); + esp_efuse_is_flash_encryption_enabled_IgnoreAndReturn(true); bool flash_encrypted = esp_efuse_is_flash_encryption_enabled(); (void)flash_encrypted;