]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: export efi_load_image_from_path
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 26 Apr 2024 14:13:20 +0000 (16:13 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 10 Jun 2024 09:43:36 +0000 (11:43 +0200)
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>
include/efi_loader.h
lib/efi_loader/efi_boottime.c

index 1b4bc987a2373505ae245263254d876bfa139d7d..ab7bed22971bb2bdf70392c5547cc449aa36b128 100644 (file)
@@ -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,
index 630c5f52c4f27e0cbe2fd3e3a7a2e1ec09fdda0e..eedc5f3954922e699626c8979fb9dfe13fefec85 100644 (file)
@@ -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)