]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: fix efi_dp_from_file()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 13 May 2023 08:36:21 +0000 (10:36 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 13 May 2023 09:09:51 +0000 (11:09 +0200)
commitc7c0ca37673d8f1ae1c54dad1869101f566923f7
tree19719507f0910d6a23ec5a92b58b828527ef4134
parente1273ea2ec0edfa5502b66b0b142efddd2ef8283
efi_loader: fix efi_dp_from_file()

* When called from efi_dp_from_name() we miss to append the filename
  for non-block devices.
* expand_media_path() could be simplified by using efi_dp_from_file to
  prepend the device path of the boot device.

This can be avoided by passing a device path to efi_dp_from_file() instead
of a block device descriptor and a partition number.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
cmd/bootefi.c
include/efi_loader.h
lib/efi_loader/efi_bootmgr.c
lib/efi_loader/efi_device_path.c