Add IH_OS_OPENSBI to the list of supported OS types in the os_ok check
so that FIT images containing an OpenSBI firmware can be loaded without
error. Otherwise loading OpenSBI in full FIT Image is not possible.

Signed-off-by: Nikita Shubin <[email protected]>
---
 boot/image-fit.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/boot/image-fit.c b/boot/image-fit.c
index b0fcaf6e17f..458df45ea7b 100644
--- a/boot/image-fit.c
+++ b/boot/image-fit.c
@@ -2204,6 +2204,7 @@ int fit_image_load(struct bootm_headers *images, ulong 
addr,
                fit_image_check_os(fit, noffset, IH_OS_U_BOOT) ||
                fit_image_check_os(fit, noffset, IH_OS_TEE) ||
                fit_image_check_os(fit, noffset, IH_OS_OPENRTOS) ||
+               fit_image_check_os(fit, noffset, IH_OS_OPENSBI) |
                fit_image_check_os(fit, noffset, IH_OS_EFI) ||
                fit_image_check_os(fit, noffset, IH_OS_VXWORKS) ||
                fit_image_check_os(fit, noffset, IH_OS_ELF);

-- 
2.52.0

Reply via email to