BL1: Add BL1 testsuite
Change-Id: If9566c854d9fb3ac748e1e335e004d721a7d436c Signed-off-by: Raef Coles <raef.coles@arm.com>
This commit is contained in:
parent
ad55d1d844
commit
376e3d6aff
|
@ -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()
|
||||
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue