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:
@@ -664,6 +664,10 @@ efi_status_t EFIAPI efi_load_image(bool boot_policy,
|
|||||||
void *source_buffer,
|
void *source_buffer,
|
||||||
efi_uintn_t source_size,
|
efi_uintn_t source_size,
|
||||||
efi_handle_t *image_handle);
|
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 */
|
/* Start image */
|
||||||
efi_status_t EFIAPI efi_start_image(efi_handle_t image_handle,
|
efi_status_t EFIAPI efi_start_image(efi_handle_t image_handle,
|
||||||
efi_uintn_t *exit_data_size,
|
efi_uintn_t *exit_data_size,
|
||||||
|
@@ -1996,7 +1996,6 @@ error:
|
|||||||
* @size: size of the loaded image
|
* @size: size of the loaded image
|
||||||
* Return: status code
|
* Return: status code
|
||||||
*/
|
*/
|
||||||
static
|
|
||||||
efi_status_t efi_load_image_from_path(bool boot_policy,
|
efi_status_t efi_load_image_from_path(bool boot_policy,
|
||||||
struct efi_device_path *file_path,
|
struct efi_device_path *file_path,
|
||||||
void **buffer, efi_uintn_t *size)
|
void **buffer, efi_uintn_t *size)
|
||||||
|
Reference in New Issue
Block a user