boot: Support rescanning the global bootmeths
authorSimon Glass <sjg@chromium.org>
Wed, 15 Oct 2025 15:44:09 +0000 (16:44 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 22 Oct 2025 20:16:56 +0000 (14:16 -0600)
commit8e31093dbce4fb233c6f14520149293b92981b50
treea26924e949e41cb82e74171160badc2f88d0f610
parentbef963cb751049cacc86f2754452efadd03ae2f0
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 <sjg@chromium.org>
boot/bootflow.c
include/bootflow.h