summaryrefslogtreecommitdiff
path: root/common/image-fit.c
diff options
context:
space:
mode:
authorLihua Zhao <lihua.zhao@windriver.com>2020-03-18 07:32:07 -0700
committerTom Rini <trini@konsulko.com>2020-03-31 10:06:52 -0400
commit0df27d687c4639208d6e378907ca00f68cd06da6 (patch)
tree5d39ca003f1786b7e79ec9fe7fcd1a17809c21b2 /common/image-fit.c
parent93330d4ce416208fe202e304e5a18166c57ac569 (diff)
downloadu-boot-0df27d687c4639208d6e378907ca00f68cd06da6.tar.gz
u-boot-0df27d687c4639208d6e378907ca00f68cd06da6.tar.bz2
u-boot-0df27d687c4639208d6e378907ca00f68cd06da6.zip
image-fit: Allow loading FIT image for VxWorks
This adds the check against IH_OS_VXWORKS during FIT image load, to allow loading FIT image for VxWorks. Signed-off-by: Lihua Zhao <lihua.zhao@windriver.com> Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'common/image-fit.c')
-rw-r--r--common/image-fit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/image-fit.c b/common/image-fit.c
index 4435bc4f1d..6da69d25ff 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -2007,7 +2007,8 @@ int fit_image_load(bootm_headers_t *images, ulong addr,
fit_image_check_os(fit, noffset, IH_OS_LINUX) ||
fit_image_check_os(fit, noffset, IH_OS_U_BOOT) ||
fit_image_check_os(fit, noffset, IH_OS_OPENRTOS) ||
- fit_image_check_os(fit, noffset, IH_OS_EFI);
+ fit_image_check_os(fit, noffset, IH_OS_EFI) ||
+ fit_image_check_os(fit, noffset, IH_OS_VXWORKS);
/*
* If either of the checks fail, we should report an error, but