efi: Allow inclusion of EFI-runtime headers

Some headers use the __efi_runtime macro in their declarations. With the
app we do not have a separate runtime sections, so define this to be
empty. This allows the headers to be included from the app.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-08-29 07:52:20 -06:00
parent 64c72bcea2
commit a815b91b97

View File

@@ -58,6 +58,11 @@ struct udevice;
#define EFI32_LOADER_SIGNATURE "EL32"
#define EFI64_LOADER_SIGNATURE "EL64"
#ifdef CONFIG_EFI_APP
/* add an empty value for this so that efi_variables.h can be included */
#define __efi_runtime
#endif
/**
* struct efi_device_path - device path protocol
*