bootstd: Add an implementation of EFI boot
authorSimon Glass <sjg@chromium.org>
Mon, 25 Apr 2022 05:31:17 +0000 (23:31 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 25 Apr 2022 14:00:04 +0000 (10:00 -0400)
commitacfa9bdfa7391f1872aa67bc6e4d3cd38e11d6c9
tree1625d6aea62d52abe5db68742605200745891b20
parentdab2c2859b68ad04f276555812ecfbb25680cc61
bootstd: Add an implementation of EFI boot

Add a bootmeth driver which handles EFI boot, using EFI_LOADER.

In effect, this provides the same functionality as the 'bootefi' command
and shares the same code. But the interface into it is via a bootmeth,
so it does not require any special scripts, etc.

For now this requires the 'bootefi' command be enabled. Future work may
tidy this up so that it can be used without CONFIG_CMDLINE being enabled.

There was much discussion about whether this is needed, but it seems
that it is, at least for now.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/Kconfig
boot/Makefile
boot/bootmeth_efi.c [new file with mode: 0644]