mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
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:
@@ -1,10 +1,13 @@
|
|||||||
if( IDF_TARGET STREQUAL "esp32s2" )
|
if( IDF_TARGET STREQUAL "esp32s2" )
|
||||||
idf_component_register(SRCS "esp32s2/test_memprot_main.c" "esp32s2/test_panic.c"
|
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" )
|
elseif( IDF_TARGET STREQUAL "esp32c3" )
|
||||||
idf_component_register(SRCS "esp32c3/test_memprot_main.c" "esp32c3/test_panic.c" "esp32c3/return_from_panic.S"
|
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" )
|
elseif( IDF_TARGET STREQUAL "esp32s3" )
|
||||||
idf_component_register(SRCS "esp32s3/test_memprot_main.c" "esp32s3/test_panic.c"
|
idf_component_register(SRCS "esp32s3/test_memprot_main.c" "esp32s3/test_panic.c"
|
||||||
INCLUDE_DIRS "")
|
INCLUDE_DIRS ""
|
||||||
|
PRIV_REQUIRES esp_hal_wdt)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user