diff mbox series

[v2,1/6] image: fit: allow IH_OS_OPENSBI in fit_image_load()

Message ID 20260902-riscv-full-fit-support-v2-1-493e904a129e@maquefel.me
State Under Review
Delegated to: Tim Ouyang
Headers show
Series RISC-V SPL: fix OpenSBI FULL FIT loading | expand

Commit Message

Nikita Shubin Sept. 2, 2026, 6:31 a.m. UTC
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.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
---
 boot/image-fit.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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);