feat(fwu): avoid booting with an alternate boot source
All firmware banks should be part of the same non-volatile storage as per PSA FWU specification, hence avoid checking for any alternate boot source when PSA FWU is enabled. Change-Id: I5b016e59e87f1cbfc73f4cd29fce6017c24f88b3 Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
This commit is contained in:
parent
0f20e50b26
commit
4b48f7b565
|
@ -239,9 +239,18 @@ int load_auth_image(unsigned int image_id, image_info_t *image_data)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* All firmware banks should be part of the same non-volatile storage as per
|
||||||
|
* PSA FWU specification, hence don't check for any alternate boot source
|
||||||
|
* when PSA FWU is enabled.
|
||||||
|
*/
|
||||||
|
#if PSA_FWU_SUPPORT
|
||||||
|
err = load_auth_image_internal(image_id, image_data);
|
||||||
|
#else
|
||||||
do {
|
do {
|
||||||
err = load_auth_image_internal(image_id, image_data);
|
err = load_auth_image_internal(image_id, image_data);
|
||||||
} while ((err != 0) && (plat_try_next_boot_source() != 0));
|
} while ((err != 0) && (plat_try_next_boot_source() != 0));
|
||||||
|
#endif /* PSA_FWU_SUPPORT */
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue