mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-04 20:26:13 +02:00
efi_loader: export efi_load_image_from_path
We can reuse this function to load the device-tree. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
b34528ebad
commit
8deb5d855b
@ -664,6 +664,10 @@ efi_status_t EFIAPI efi_load_image(bool boot_policy,
|
||||
void *source_buffer,
|
||||
efi_uintn_t source_size,
|
||||
efi_handle_t *image_handle);
|
||||
/* Load image from path */
|
||||
efi_status_t efi_load_image_from_path(bool boot_policy,
|
||||
struct efi_device_path *file_path,
|
||||
void **buffer, efi_uintn_t *size);
|
||||
/* Start image */
|
||||
efi_status_t EFIAPI efi_start_image(efi_handle_t image_handle,
|
||||
efi_uintn_t *exit_data_size,
|
||||
|
||||
@ -1996,7 +1996,6 @@ error:
|
||||
* @size: size of the loaded image
|
||||
* Return: status code
|
||||
*/
|
||||
static
|
||||
efi_status_t efi_load_image_from_path(bool boot_policy,
|
||||
struct efi_device_path *file_path,
|
||||
void **buffer, efi_uintn_t *size)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user