2023-01-06 00:16:26 -05:00
|
|
|
set(srcs "test_app_main.c" "test_panic.c")
|
|
|
|
|
|
|
|
if(CONFIG_TEST_MEMPROT)
|
|
|
|
list(APPEND srcs "test_memprot.c")
|
|
|
|
if(CONFIG_SOC_MEMPROT_SUPPORTED)
|
|
|
|
if(CONFIG_IDF_TARGET_ARCH_XTENSA)
|
|
|
|
list(APPEND srcs "panic_utils/memprot_panic_utils_xtensa.c")
|
|
|
|
elseif(CONFIG_IDF_TARGET_ARCH_RISCV)
|
|
|
|
list(APPEND srcs "panic_utils/memprot_panic_utils_riscv.c")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
idf_component_register(SRCS "${srcs}"
|
|
|
|
INCLUDE_DIRS "include"
|
2023-03-22 02:25:40 -04:00
|
|
|
REQUIRES spi_flash esp_psram esp_system esp_partition
|
|
|
|
PRIV_REQUIRES esp_gdbstub)
|
2023-05-04 11:31:31 -04:00
|
|
|
|
|
|
|
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-unused-variable"
|
2023-07-18 05:40:20 -04:00
|
|
|
"-Wno-infinite-recursion"
|
|
|
|
"-Wno-array-bounds")
|