[PATCH 1/5] image: fit: allow IH_OS_OPENSBI in fit_image_load()

Nikita Shubin <[email protected]>
Newsgroups org.u-boot-project.lists.u-boot
Message-ID <[email protected]>
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 ef90c5abd18..865edfeb1b5 100644
--- a/boot/image-fit.c
+++ b/boot/image-fit.c
@@ -2274,6 +2274,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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.