boot: Update first_glob_method when dropping a bootmeth
authorSimon Glass <sjg@chromium.org>
Wed, 15 Oct 2025 15:44:06 +0000 (16:44 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 22 Oct 2025 20:16:56 +0000 (14:16 -0600)
commiteca985905d7956ca69e1abfe9ef1d3eb5c64c0a9
tree541d96a1a0d7059071667673d5148b068296a201
parenta2301201e36d665c08b51617e1c66133b32d9808
boot: Update first_glob_method when dropping a bootmeth

For now we only support dropping non-global bootmeths from the
iteration. Update first_glob_method in that case and add a few checks
that things are correct.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/bootflow.c
test/boot/bootflow.c