efi: Create a new CONFIG_EFI

Create a Kconfig which indicates that EFI functionality is in use,
either as a client (EFI app / stub) or provider (EFI loader). This will
make it easier to share code between these two parts of U-Boot

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-05-23 14:06:41 +01:00
parent ca1f2dbd8e
commit a07abd67da
4 changed files with 19 additions and 3 deletions

View File

@@ -46,9 +46,9 @@ First choose a board that has EFI support and obtain an EFI implementation
for that board. It will be either 32-bit or 64-bit. Alternatively, you can
opt for using QEMU [1] and the OVMF [2], as detailed below.
To build U-Boot as an EFI application, enable CONFIG_EFI_CLIENT and CONFIG_EFI_APP.
The efi-x86_app32 and efi-x86_app64 configs are set up for this. Just build
U-Boot as normal, e.g.::
To build U-Boot as an EFI application, enable CONFIG_EFI_CLIENT and
CONFIG_EFI_APP. The efi-x86_app32 and efi-x86_app64 configs are set up for
this. Just build U-Boot as normal, e.g.::
make efi-x86_app32_defconfig
make