[PATCH 07/21] event: Pass the images to EVT_FT_FIXUP

Simon Glass sjg at chromium.org
Wed Aug 31 05:08:03 CEST 2022


Pass the boot images along as well, in case the fixups need to look at
them.

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

 boot/image-fdt.c | 1 +
 include/event.h  | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/boot/image-fdt.c b/boot/image-fdt.c
index ca51796322d..884e089f2d8 100644
--- a/boot/image-fdt.c
+++ b/boot/image-fdt.c
@@ -669,6 +669,7 @@ int image_setup_libfdt(struct bootm_headers *images, void *blob,
 		struct event_ft_fixup fixup;
 
 		fixup.tree = oftree_default();
+		fixup.images = images;
 		ret = event_notify(EVT_FT_FIXUP, &fixup, sizeof(fixup));
 		if (ret) {
 			printf("ERROR: fdt fixup event failed: %d\n", ret);
diff --git a/include/event.h b/include/event.h
index e8f2f55c63d..720fe8ae695 100644
--- a/include/event.h
+++ b/include/event.h
@@ -60,9 +60,11 @@ union event_data {
 	 * struct event_ft_fixup - FDT fixup before booting
 	 *
 	 * @tree: tree to update
+	 * @images: images which are being booted
 	 */
 	struct event_ft_fixup {
 		oftree tree;
+		struct bootm_headers *images;
 	} ft_fixup;
 };
 
-- 
2.37.2.672.g94769d06f0-goog



More information about the U-Boot mailing list