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.
This commit is contained in:
Sudeep Mohanty
2026-07-01 19:59:05 +08:00
committed by BOT
parent 658df32a06
commit ac527f3192
@@ -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()