Skip to content

Commit

Permalink
event: Pass the images to EVT_FT_FIXUP
Browse files Browse the repository at this point in the history
Pass the boot images along as well, in case the fixups need to look at
them.

Signed-off-by: Simon Glass <[email protected]>
  • Loading branch information
sjg20 authored and trini committed Sep 29, 2022
1 parent 829d512 commit b215b60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions boot/image-fdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions include/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit b215b60

Please sign in to comment.