BL1: Add BL1 testsuite

Change-Id: If9566c854d9fb3ac748e1e335e004d721a7d436c
Signed-off-by: Raef Coles <raef.coles@arm.com>
This commit is contained in:
Raef Coles 2022-01-04 10:22:55 +00:00 committed by Anton Komlev
parent ad55d1d844
commit 376e3d6aff
3 changed files with 9 additions and 1 deletions

View File

@ -80,7 +80,7 @@ add_subdirectory(lib/fih)
add_subdirectory(tools)
add_subdirectory(secure_fw)
if(NS OR TFM_S_REG_TEST OR TFM_NS_REG_TEST OR TEST_BL2)
if(NS OR TFM_S_REG_TEST OR TFM_NS_REG_TEST OR TEST_BL2 OR TEST_BL1_1 OR TEST_BL1_2)
add_subdirectory(${TFM_TEST_REPO_PATH} ${CMAKE_CURRENT_BINARY_DIR}/tf-m-tests)
endif()

View File

@ -67,6 +67,10 @@ int main(void)
FIH_PANIC;
}
#ifdef TEST_BL1_1
run_bl1_1_testsuite();
#endif /* TEST_BL1_1 */
/* Copy BL1_2 from OTP into SRAM*/
FIH_CALL(bl1_read_bl1_2_image, fih_rc, (uint8_t *)BL1_2_CODE_START);
if (fih_not_eq(fih_rc, FIH_SUCCESS)) {

View File

@ -191,6 +191,10 @@ int main(void)
FIH_PANIC;
}
#ifdef TEST_BL1_2
run_bl1_2_testsuite();
#endif /* TEST_BL1_2 */
BL1_LOG("[INF] Attempting to boot image 0\r\n");
FIH_CALL(validate_image, fih_rc, 0);
if (fih_not_eq(fih_rc, FIH_SUCCESS)) {