[PATCH 13/19] spl: Show how to fill in the size of the next image

Simon Glass
2024-09-25T13:00:12Z

Binman provides the exact size of the SPL image being loaded, so show
how to fill this in. The code is not used, since it does provide a size
increase.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

common/spl/spl.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/common/spl/spl.c b/common/spl/spl.c
index 2466b98f5a8..878036210c4 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -275,6 +275,7 @@ void spl_set_header_raw_uboot(struct spl_image_info *spl_image)
/* Binman does not support separated entry addresses */
spl_image->entry_point = spl_get_image_text_base();
spl_image->load_addr = spl_get_image_text_base();
+ /* if needed: spl_image->size = spl_get_image_size(); */
} else {
spl_image->entry_point = CONFIG_SYS_UBOOT_START;
spl_image->load_addr = CONFIG_TEXT_BASE;
--
2.43.0