From ac527f31922e62aa383ae8d9d9d56aa047d4ec97 Mon Sep 17 00:00:00 2001 From: Sudeep Mohanty Date: Mon, 18 May 2026 12:58:52 +0200 Subject: [PATCH] fix(test_apps/memprot): declare esp_hal_wdt as a private requirement of main main/{esp32s2,esp32c3,esp32s3}/test_panic.c uses WDT registers from esp_hal_wdt. Declare it explicitly so the build works under cmakev2's strict component isolation. --- tools/test_apps/system/memprot/main/CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/test_apps/system/memprot/main/CMakeLists.txt b/tools/test_apps/system/memprot/main/CMakeLists.txt index 7a4baca5a7e..102448ae89d 100644 --- a/tools/test_apps/system/memprot/main/CMakeLists.txt +++ b/tools/test_apps/system/memprot/main/CMakeLists.txt @@ -1,10 +1,13 @@ if( IDF_TARGET STREQUAL "esp32s2" ) idf_component_register(SRCS "esp32s2/test_memprot_main.c" "esp32s2/test_panic.c" - INCLUDE_DIRS "") + INCLUDE_DIRS "" + PRIV_REQUIRES esp_hal_wdt) elseif( IDF_TARGET STREQUAL "esp32c3" ) idf_component_register(SRCS "esp32c3/test_memprot_main.c" "esp32c3/test_panic.c" "esp32c3/return_from_panic.S" - INCLUDE_DIRS "") + INCLUDE_DIRS "" + PRIV_REQUIRES esp_hal_wdt) elseif( IDF_TARGET STREQUAL "esp32s3" ) idf_component_register(SRCS "esp32s3/test_memprot_main.c" "esp32s3/test_panic.c" - INCLUDE_DIRS "") + INCLUDE_DIRS "" + PRIV_REQUIRES esp_hal_wdt) endif()