summaryrefslogtreecommitdiff
path: root/boot/image-board.c
diff options
context:
space:
mode:
authorTobias Waldekranz <tobias@waldekranz.com>2023-02-16 18:33:47 +0300
committerTom Rini <trini@konsulko.com>2023-04-05 17:54:47 +0300
commite45bba562ff1b273bdff5cc43f7c43fe829b44b4 (patch)
treebab5dd0257226d6f0d592c11f76dc09cbd7e97e9 /boot/image-board.c
parent25eeda170c5e533ca0e3837c8b2d7404cdd749d1 (diff)
downloadu-boot-e45bba562ff1b273bdff5cc43f7c43fe829b44b4.tar.xz
image: Fix script execution from FIT images with external data
Update the script loading code to recognize when script data is stored externally from the FIT metadata (i.e., built with `mkimage -E`). Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot/image-board.c')
-rw-r--r--boot/image-board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/boot/image-board.c b/boot/image-board.c
index 7dd0c32e6e..c602832249 100644
--- a/boot/image-board.c
+++ b/boot/image-board.c
@@ -1126,7 +1126,8 @@ fallback:
}
/* get script subimage data address and length */
- if (fit_image_get_data(fit_hdr, noffset, &fit_data, &fit_len)) {
+ if (fit_image_get_data_and_size(fit_hdr, noffset,
+ &fit_data, &fit_len)) {
puts("Could not find script subimage data\n");
return 1;
}