diff options
author | Manish V Badarkhe <Manish.Badarkhe@arm.com> | 2021-07-01 21:32:31 +0100 |
---|---|---|
committer | Manish V Badarkhe <Manish.Badarkhe@arm.com> | 2021-08-02 17:15:41 +0100 |
commit | 4b48f7b56577a78cdc9a2b47280cb62cbae0f7c3 (patch) | |
tree | 0c2dbbda80f3e09f57a3704503ce7191ac8d84f5 /common | |
parent | 0f20e50b26f29db7c6ae033446e6b4c9ae9f2c86 (diff) | |
download | arm-trusted-firmware-4b48f7b56577a78cdc9a2b47280cb62cbae0f7c3.tar.gz |
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>
Diffstat (limited to 'common')
-rw-r--r-- | common/bl_common.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/bl_common.c b/common/bl_common.c index f17afcb11..a7e28168d 100644 --- a/common/bl_common.c +++ b/common/bl_common.c @@ -239,9 +239,18 @@ int load_auth_image(unsigned int image_id, image_info_t *image_data) { 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 { err = load_auth_image_internal(image_id, image_data); } while ((err != 0) && (plat_try_next_boot_source() != 0)); +#endif /* PSA_FWU_SUPPORT */ return err; } |