bootstd: Provide a bootmeth method to obtain state info
authorSimon Glass <sjg@chromium.org>
Sat, 30 Jul 2022 21:52:19 +0000 (15:52 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 12 Aug 2022 12:14:24 +0000 (08:14 -0400)
commit988cacaeedae920c13741c9ab2fc580f63a06c3a
tree5b2d7bc4a9a821179fd89658252469405f0cc747
parent10d16faa436c9f06bbcdeb6da35871a1b329b6b0
bootstd: Provide a bootmeth method to obtain state info

Some bootmeths can provide information about what is available to boot.
For example, VBE simple provides access to the firmware state.

Add a new method for this, along with a sandbox test.

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