aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-05-14 21:03:15 +0200
committerHimbeer <himbeer@disroot.org>2024-05-14 21:03:15 +0200
commit7f52b689eb8aa964b929c708d366e80da249aa3f (patch)
treee56cde1ff8b72b1a7fdef060d9ef082c707a862e
parente0247b8a622a08256bb876fe706eedd3d5d645f7 (diff)
image: Add IH_OS_ELF node type
-rw-r--r--common/image-fit.c3
-rw-r--r--common/image.c1
-rw-r--r--include/image.h1
3 files changed, 4 insertions, 1 deletions
diff --git a/common/image-fit.c b/common/image-fit.c
index c52f9451..ce3ce3f7 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -1926,7 +1926,8 @@ int fit_image_load(bootm_headers_t *images, ulong addr,
image_type == IH_TYPE_FPGA ||
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_OPENRTOS) ||
+ fit_image_check_os(fit, noffset, IH_OS_ELF);
/*
* If either of the checks fail, we should report an error, but
diff --git a/common/image.c b/common/image.c
index 6148e88d..da28fe9e 100644
--- a/common/image.c
+++ b/common/image.c
@@ -138,6 +138,7 @@ static const table_entry_t uimage_os[] = {
{ IH_OS_OPENRTOS, "openrtos", "OpenRTOS", },
#endif
{ IH_OS_OPENSBI, "opensbi", "RISC-V OpenSBI", },
+ { IH_OS_ELF, "elf", "ELF Kernel", },
{ -1, "", "", },
};
diff --git a/include/image.h b/include/image.h
index c8b857e7..e9a8c2f2 100644
--- a/include/image.h
+++ b/include/image.h
@@ -157,6 +157,7 @@ enum {
IH_OS_ARM_TRUSTED_FIRMWARE, /* ARM Trusted Firmware */
IH_OS_TEE, /* Trusted Execution Environment */
IH_OS_OPENSBI, /* RISC-V OpenSBI */
+ IH_OS_ELF, /* ELF Kernel */
IH_OS_COUNT,
};