efi: Move default filename to a function

Use a function to obtain the device EFI filename, so that we can control
how sandbox behaves.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2024-11-07 14:31:43 -07:00 committed by Heinrich Schuchardt
parent efe9bd4a08
commit 9fd623afed
6 changed files with 67 additions and 64 deletions

View file

@ -669,4 +669,13 @@ int efi_get_mmap(struct efi_mem_desc **descp, int *sizep, uint *keyp,
*/
void efi_show_tables(struct efi_system_table *systab);
/**
* efi_get_basename() - Get the default filename to use when loading
*
* E.g. this function returns BOOTAA64.EFI for an aarch target
*
* Return: Default EFI filename
*/
const char *efi_get_basename(void);
#endif /* _LINUX_EFI_H */