diff options
author | Simon Glass <sjg@chromium.org> | 2022-09-06 20:26:58 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-09-29 16:07:58 -0400 |
commit | b215b6034c4e75d8eb0a958574b7ec3d7754b180 (patch) | |
tree | 25aba91a321a35bdaa0f5f3b27296d044d1ab837 | |
parent | 829d51246fda25655b64224f2a19976797cf1897 (diff) | |
download | u-boot-b215b6034c4e75d8eb0a958574b7ec3d7754b180.zip u-boot-b215b6034c4e75d8eb0a958574b7ec3d7754b180.tar.gz u-boot-b215b6034c4e75d8eb0a958574b7ec3d7754b180.tar.bz2 |
event: Pass the images to EVT_FT_FIXUP
Pass the boot images along as well, in case the fixups need to look at
them.
Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | boot/image-fdt.c | 1 | ||||
-rw-r--r-- | include/event.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/boot/image-fdt.c b/boot/image-fdt.c index ca51796..884e089 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 ff883ca..3e6dcbc 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; }; |