]> git.baikalelectronics.ru Git - uboot.git/commit
bootstd: Allow scanning for global bootmeths separately
authorSimon Glass <sjg@chromium.org>
Sat, 30 Jul 2022 21:52:27 +0000 (15:52 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 12 Aug 2022 12:17:11 +0000 (08:17 -0400)
commit4e3e1d24685abb931601d15906c2ff1b9712908a
tree17a5e5c90db361f5df94fa42c77531450fa0a58b
parent9b32808999f5001ff148a183f6455dca29405a77
bootstd: Allow scanning for global bootmeths separately

Typically we want to find and use global bootmeths first, since they have
the best idea of how the system should boot. We then use normal bootmeths
as a fallback.

Add the logic for this, putting global bootmeths at the end of the
ordering. We can then easily scan the global bootmeths first, then drop
them from the list for subsequent bootdev-centric scans.

This changes the ordering of global bootmeths, so update the
bootflow_system() accordingly.

Drop the comment from bootmeth_setup_iter_order() since this is an
exported function and it should be in the header file.

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