summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorNora Schiffer <[email protected]>2026-06-22 13:19:33 +0200
committerTom Rini <[email protected]>2026-07-03 10:11:11 -0600
commitc63051237f2bc79838a27473709948408acdf38b (patch)
treee8072f9bf2d601f9b4b851f6cfe2c20de54563b8 /boot
parentc2abc606653e7eb1e8dbdbaaf1eac392689875ea (diff)
bootm: allow omitting entry point for IH_TYPE_KERNEL_NOLOAD
For IH_TYPE_KERNEL_NOLOAD, the entry point is given relative to the image start, making 0 a valid default, and for IH_OS_EFI, it is ignored altogether, so it may be preferable to omit it. Signed-off-by: Nora Schiffer <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'boot')
-rw-r--r--boot/bootm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/bootm.c b/boot/bootm.c
index b1cc6fe6c5c..1aeabdd5db1 100644
--- a/boot/bootm.c
+++ b/boot/bootm.c
@@ -429,7 +429,7 @@ static int bootm_find_os(const char *cmd_name, const char *addr_fit)
ret = fit_image_get_entry(images.fit_hdr_os,
images.fit_noffset_os, &images.ep);
- if (ret) {
+ if (ret && images.os.type != IH_TYPE_KERNEL_NOLOAD) {
puts("Can't get entry point property!\n");
return 1;
}