diff options
| author | Simon Glass <[email protected]> | 2025-10-15 16:44:09 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-10-22 14:16:56 -0600 |
| commit | 8e31093dbce4fb233c6f14520149293b92981b50 (patch) | |
| tree | a26924e949e41cb82e74171160badc2f88d0f610 /include/bootflow.h | |
| parent | bef963cb751049cacc86f2754452efadd03ae2f0 (diff) | |
boot: Support rescanning the global bootmeths
Add the logic to scan through the global bootmeths for every new
bootdev, in preparation for allowing global bootmeths to select where in
the hunter ordering they go.
Use a new bootmeth_glob_allowed() function to check if a bootmeth is
allowed, ensuring that each can run at most once.
For now this has no actual effect, since the global bootmeths are
unconditionally processed at the start, with iter->methods_done being
updated to include all of them. Therefore when scanning again, no
unprocessed global bootmeths will be found.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/bootflow.h')
| -rw-r--r-- | include/bootflow.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/bootflow.h b/include/bootflow.h index 58a4ab9f811..059d38251b7 100644 --- a/include/bootflow.h +++ b/include/bootflow.h @@ -267,6 +267,9 @@ enum { * (enum bootflow_meth_flags_t) * @methods_done: indicates which methods have been processed, one bit for * each method in @method_order[] + * @pending_bootdev: if non-NULL, bootdev which will be used when the global + * bootmeths are done + * @pending_method_flags: method flags which will be used with @pending_bootdev */ struct bootflow_iter { int flags; @@ -290,6 +293,8 @@ struct bootflow_iter { bool doing_global; int method_flags; uint methods_done; + struct udevice *pending_bootdev; + int pending_method_flags; }; /** |
